params_buffer_size (9) Linux Manual Page
params_buffer_size – Get the buffer size (in frames) from the hw params Synopsis unsigned int params_buffer_size(const struct snd_pcm_hw_params *p); Arguments p hw params Copyright
The Linux Manuals (man pages) document is an important part of Linux documents. Linux Manuals are organized as several sections. Each section has a group of commands for a specific area in Linux usage, administration or development.
params_buffer_size – Get the buffer size (in frames) from the hw params Synopsis unsigned int params_buffer_size(const struct snd_pcm_hw_params *p); Arguments p hw params Copyright
params_buffer_bytes – Get the buffer size (in bytes) from the hw params Synopsis unsigned int params_buffer_bytes(const struct snd_pcm_hw_params *p); Arguments p hw params Copyright
panic_nand_write – [MTD Interface] NAND write with ECC Synopsis int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const uint8_t *buf); Arguments mtd MTD device structure to offset to write to len number of bytes to write retlen pointer to variable to store the number of written bytes buf the data to write Description…
panic_nand_wait_ready – [GENERIC] Wait for the ready pin after commands. Synopsis void panic_nand_wait_ready(struct mtd_info *mtd, unsigned long timeo); Arguments mtd MTD device structure timeo Timeout Description Helper function for nand_wait_ready used when needing to wait in interrupt context. Author Thomas Gleixner <tglx [at] linutronix.de> Author. Copyright
panic_nand_wait – [GENERIC] wait until the command is done Synopsis void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, unsigned long timeo); Arguments mtd MTD device structure chip NAND chip structure timeo timeout Description Wait for command done. This is a helper function for nand_wait used when we are in interrupt context. May happen when in panic…
panic_nand_get_device – [GENERIC] Get chip for selected access Synopsis void panic_nand_get_device(struct nand_chip *chip, struct mtd_info *mtd, int new_state); Arguments chip the nand chip descriptor mtd MTD device structure new_state the state which is requested Description Used when in panic, no locks are taken. Author Thomas Gleixner <tglx [at] linutronix.de> Author. Copyright
pagecache_isize_extended – update pagecache after extension of i_size Synopsis void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to); Arguments inode inode for which i_size was extended from original inode size to new inode size Description Handle extension of inode size either caused by extending truncate or by write starting after current i_size. We mark the page…
pagecache_get_page – find and get a page reference Synopsis struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset, int fgp_flags, gfp_t gfp_mask); Arguments mapping the address_space to search offset the page index fgp_flags PCG flags gfp_mask gfp mask to use for the page cache data page allocation Description Looks up the page cache slot at mapping &…
page_cache_sync_readahead – generic file readahead Synopsis void page_cache_sync_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *filp, pgoff_t offset, unsigned long req_size); Arguments mapping address_space which holds the pagecache and I/O vectors ra file_ra_state which holds the readahead state filp passed on to ->readpage and ->readpages offset start offset into mapping, in pagecache page-sized units req_size…
page_cache_prev_hole – find the prev hole (not-present entry) Synopsis pgoff_t page_cache_prev_hole(struct address_space * mapping, pgoff_t index, unsigned long max_scan); Arguments mapping mapping index index max_scan maximum range to search Description Search backwards in the range [max(index-max_scan+1, 0), index] for the first hole. Return the index of the hole if found, otherwise returns an index outside of the set specified…
page_cache_next_hole – find the next hole (not-present entry) Synopsis pgoff_t page_cache_next_hole(struct address_space * mapping, pgoff_t index, unsigned long max_scan); Arguments mapping mapping index index max_scan maximum range to search Description Search the set [index, min(index+max_scan-1, MAX_INDEX)] for the lowest indexed hole. Return the index of the hole if found, otherwise returns an index outside of the set specified (in…
page_cache_async_readahead – file readahead for marked pages Synopsis void page_cache_async_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *filp, struct page *page, pgoff_t offset, unsigned long req_size); Arguments mapping address_space which holds the pagecache and I/O vectors ra file_ra_state which holds the readahead state filp passed on to ->readpage and ->readpages page the page at offset…
of_mdio_find_bus – Given an mii_bus node, find the mii_bus. Synopsis struct mii_bus *of_mdio_find_bus(struct device_node *mdio_bus_np); Arguments mdio_bus_np Pointer to the mii_bus. Description Returns a reference to the mii_bus, or NULL if none found. The embedded struct device will have its reference count incremented, and this must be put once the bus is finished with. Because…
nr_free_zone_pages – count number of pages beyond high watermark Synopsis unsigned long nr_free_zone_pages(int offset); Arguments offset The zone index of the highest zone Description nr_free_zone_pages counts the number of counts pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is…
nr_free_pagecache_pages – count number of pages beyond high watermark Synopsis unsigned long nr_free_pagecache_pages(void); Arguments void no arguments Description nr_free_pagecache_pages counts the number of pages which are beyond the high watermark within all zones. Copyright
node_map_pfn_alignment – determine the maximum internode alignment Synopsis unsigned long node_map_pfn_alignment(void); Arguments void no arguments Description This function should be called after node map is populated and sorted. It calculates the maximum power of two alignment which can distinguish all the nodes. For example, if all nodes are 1GiB and aligned to 1GiB, the return…
new_inode – obtain an inode Synopsis struct inode *new_inode(struct super_block *sb); Arguments sb superblock Description Allocates a new inode for given superblock. The default gfp_mask for allocations related to inode->i_mapping is GFP_HIGHUSER_MOVABLE. If HIGHMEM pages are unsuitable or it is known that pages allocated for the page cache are not reclaimable or migratable, mapping_set_gfp_mask must…
netif_wake_subqueue – allow sending packets on subqueue Synopsis void netif_wake_subqueue(struct net_device *dev, u16 queue_index); Arguments dev network device queue_index sub queue index Description Resume individual transmit queue of a device with multiple transmit queues. Copyright
netif_wake_queue – restart transmit Synopsis void netif_wake_queue(struct net_device *dev); Arguments dev network device Description Allow upper layers to call the device hard_start_xmit routine. Used for flow control when transmit resources are available. Copyright
netif_tx_napi_add – initialize a NAPI context Synopsis void netif_tx_napi_add(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int), int weight); Arguments dev network device napi NAPI context poll polling function weight default weight Description This variant of netif_napi_add should be used from drivers using NAPI to exclusively poll a TX queue. This will avoid…