id
stringlengths
4
63
text
stringlengths
153
8.81M
netdev_notify_peers(9)
NAME netdev_notify_peers - notify network peers about existence of @dev SYNOPSIS void netdev_notify_peers (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Generate traffic such that interested network peers are aware of dev, such as by generating a gratuitous ARP. This may be used when a...
netdev_nway_reset(9)
NAME netdev_nway_reset - restart auto-negotiation SYNOPSIS int netdev_nway_reset (struct net_device *dev ); ARGUMENTS dev Network device. DESCRIPTION This function restarts the PHY for auto-negotiation. Return 0 if successful; otherwise an error code. SEE ALSO Kernel file ./drivers/net/ethernet/micrel/ks...
netdev_open(9)
NAME netdev_open - open network device SYNOPSIS int netdev_open (struct net_device *dev ); ARGUMENTS dev Network device. DESCRIPTION This function process the open operation of network device. This is caused by the user command "ifconfig ethX up." Return 0 if successful; otherwise an error code indicating ...
netdev_port_same_parent_id(9)
NAME netdev_port_same_parent_id - Indicate if two network devices have the same port parent identifier SYNOPSIS bool netdev_port_same_parent_id (struct net_device *a , struct net_device *b ); ARGUMENTS a first network device b second network device SEE ALSO Kernel file ./net/core/dev.c ...
netdev_priv(9)
NAME netdev_priv - access network device private data SYNOPSIS void * netdev_priv (const struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Get network device private data SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_node(9), napi_is_scheduled(9), napi_schedule(9), napi...
netdev_query_statistics(9)
NAME netdev_query_statistics - query network device statistics SYNOPSIS struct net_device_stats * netdev_query_statistics (struct net_device *dev ); ARGUMENTS dev Network device. DESCRIPTION This function returns the statistics of the network device. The device needs not be opened. Return network device st...
netdev_queue_config(9)
NAME netdev_queue_config - get configuration for a given queue SYNOPSIS void netdev_queue_config (struct net_device *dev , int rxq_idx , struct netdev_queue_config *qcfg ); ARGUMENTS dev net_device instance rxq_idx index of the queue of interest qcfg queue configuration struct (outp...
netdev_queue_get_dma_dev(9)
NAME netdev_queue_get_dma_dev - get dma device for zero-copy operations SYNOPSIS struct device * netdev_queue_get_dma_dev (struct net_device *dev , int idx ); ARGUMENTS dev net_device idx queue index DESCRIPTION Get dma device for zero-copy operations to be used for this queue. When such dev...
netdev_queue_set_dql_min_limit(9)
NAME netdev_queue_set_dql_min_limit - set dql minimum limit SYNOPSIS void netdev_queue_set_dql_min_limit (struct netdev_queue *dev_queue , unsigned int min_limit ); ARGUMENTS dev_queue pointer to transmit queue min_limit dql minimum limit DESCRIPTION Forces xmit_more to return true until the minimum thre...
netdev_reset_queue(9)
NAME netdev_reset_queue - reset the packets and bytes count of a network device SYNOPSIS void netdev_reset_queue (struct net_device *dev_queue ); ARGUMENTS dev_queue network device DESCRIPTION Reset the bytes and packet count of a network device and clear the software flow control OFF bit for this network device ...
netdev_rx_handler_register(9)
NAME netdev_rx_handler_register - register receive handler SYNOPSIS int netdev_rx_handler_register (struct net_device *dev , rx_handler_func_t *rx_handler , void *rx_handler_data ); ARGUMENTS dev device to register a handler for rx_handler receive handler to register rx_handler_data ...
netdev_rx_handler_unregister(9)
NAME netdev_rx_handler_unregister - unregister receive handler SYNOPSIS void netdev_rx_handler_unregister (struct net_device *dev ); ARGUMENTS dev device to unregister a handler from DESCRIPTION Unregister a receive handler from a device. The caller must hold the rtnl_mutex. SEE ALSO Kernel file ./net/co...
netdev_sent_queue(9)
NAME netdev_sent_queue - report the number of bytes queued to hardware SYNOPSIS void netdev_sent_queue (struct net_device *dev , unsigned int bytes ); ARGUMENTS dev network device bytes number of bytes queued to the hardware device queue DESCRIPTION Report the number of bytes queued for sendi...
netdev_set_defer_hard_irqs(9)
NAME netdev_set_defer_hard_irqs - set defer_hard_irqs for all NAPIs of a netdev SYNOPSIS void netdev_set_defer_hard_irqs (struct net_device *netdev , u32 defer ); ARGUMENTS netdev the net_device for which all NAPIs will have defer_hard_irqs set defer the defer_hard_irqs value to set SEE ALSO Kerne...
netdev_set_eeprom(9)
NAME netdev_set_eeprom - write EEPROM data SYNOPSIS int netdev_set_eeprom (struct net_device *dev , struct ethtool_eeprom *eeprom , u8 *data ); ARGUMENTS dev Network device. eeprom Ethtool EEPROM data structure. data Data buffer. DESCRIPTION This function modifies the EEPROM data ...
netdev_set_features(9)
NAME netdev_set_features - set receive checksum support SYNOPSIS int netdev_set_features (struct net_device *dev , netdev_features_t features ); ARGUMENTS dev Network device. features New device features (offloads). DESCRIPTION This function sets receive checksum support setting. Return 0 if succ...
netdev_set_gro_flush_timeout(9)
NAME netdev_set_gro_flush_timeout - set gro_flush_timeout of a netdev's NAPIs SYNOPSIS void netdev_set_gro_flush_timeout (struct net_device *netdev , unsigned long timeout ); ARGUMENTS netdev the net_device for which all NAPIs will have gro_flush_timeout set timeout the timeout value to set SEE ALSO...
netdev_set_link_ksettings(9)
NAME netdev_set_link_ksettings - set network device settings SYNOPSIS int netdev_set_link_ksettings (struct net_device *dev , const struct ethtool_link_ksettings *cmd ); ARGUMENTS dev Network device. cmd Ethtool command. DESCRIPTION This function sets the PHY according to the ethtool command....
netdev_set_mac_address(9)
NAME netdev_set_mac_address - Write the MAC address (from outside the driver) SYNOPSIS int netdev_set_mac_address (struct net_device *ndev , void *p ); ARGUMENTS ndev Pointer to the net_device structure p 6 byte Address to be written as MAC address RETURN 0 for all conditions. Presently, the...
netdev_set_msglevel(9)
NAME netdev_set_msglevel - set debug message level SYNOPSIS void netdev_set_msglevel (struct net_device *dev , u32 value ); ARGUMENTS dev Network device. value Debug message flags. DESCRIPTION This procedure sets debug message level. SEE ALSO Kernel file ./drivers/net/ethernet/micrel/ksz884x...
netdev_set_pauseparam(9)
NAME netdev_set_pauseparam - set flow control parameters SYNOPSIS int netdev_set_pauseparam (struct net_device *dev , struct ethtool_pauseparam *pause ); ARGUMENTS dev Network device. pause Ethtool PAUSE settings data structure. DESCRIPTION This function sets the PAUSE control flow settings. N...
netdev_set_rx_mode(9)
NAME netdev_set_rx_mode - SYNOPSIS void netdev_set_rx_mode (struct net_device *dev ); ARGUMENTS dev Network device. DESCRIPTION This routine is used to set multicast addresses or put the network device into promiscuous mode. SEE ALSO Kernel file ./drivers/net/ethernet/micrel/ksz884x.c struct ksz_hw_desc...
netdev_set_wol(9)
NAME netdev_set_wol - set Wake-on-LAN support SYNOPSIS int netdev_set_wol (struct net_device *dev , struct ethtool_wolinfo *wol ); ARGUMENTS dev Network device. wol Ethtool Wake-on-LAN data structure. DESCRIPTION This function sets Wake-on-LAN support. Return 0 if successful; otherwise an er...
netdev_sk_get_lowest_dev(9)
NAME netdev_sk_get_lowest_dev - Get the lowest device in chain given device and socket SYNOPSIS struct net_device * netdev_sk_get_lowest_dev (struct net_device *dev , struct sock *sk ); ARGUMENTS dev device sk the socket DESCRIPTION NULL is returned if no lower device is found. SEE ALSO Ker...
netdev_stat_queue_sum(9)
NAME netdev_stat_queue_sum - add up queue stats from range of queues SYNOPSIS void netdev_stat_queue_sum (struct net_device *netdev , int rx_start , int rx_end , struct netdev_queue_stats_rx *rx_sum , int tx_start , int tx_end , struct netdev_queue_stats_tx *tx_sum ); ARGUMENTS netdev net_device rx_start...
netdev_state_change(9)
NAME netdev_state_change - device changes state SYNOPSIS void netdev_state_change (struct net_device *dev ); ARGUMENTS dev device to cause notification DESCRIPTION Called to indicate a device has changed state. This function calls the notifier chains for netdev_chain and sends a NEWLINK message to the routin...
netdev_sw_irq_coalesce_default_on(9)
NAME netdev_sw_irq_coalesce_default_on - enable SW IRQ coalescing by default SYNOPSIS void netdev_sw_irq_coalesce_default_on (struct net_device *dev ); ARGUMENTS dev netdev to enable the IRQ coalescing on DESCRIPTION Sets a conservative default for SW IRQ coalescing. Users can use sysfs attributes to overrid...
netdev_tx(9)
NAME netdev_tx - send out packet SYNOPSIS netdev_tx_t netdev_tx (struct sk_buff *skb , struct net_device *dev ); ARGUMENTS skb Socket buffer. dev Network device. DESCRIPTION This function is used by the upper network layer to send out a packet. Return 0 if successful; otherwise an error code...
netdev_tx_completed_queue(9)
NAME netdev_tx_completed_queue - report number of packets/bytes at TX completion. SYNOPSIS void netdev_tx_completed_queue (struct netdev_queue *dev_queue , unsigned int pkts , unsigned int bytes ); ARGUMENTS dev_queue network device queue pkts number of packets (currently ignored) bytes ...
netdev_tx_reset_subqueue(9)
NAME netdev_tx_reset_subqueue - reset the BQL stats and state of a netdev queue SYNOPSIS void netdev_tx_reset_subqueue (const struct net_device *dev , u32 qid ); ARGUMENTS dev network device qid stack index of the queue to reset SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_...
netdev_tx_sent_queue(9)
NAME netdev_tx_sent_queue - report the number of bytes queued to a given tx queue SYNOPSIS void netdev_tx_sent_queue (struct netdev_queue *dev_queue , unsigned int bytes ); ARGUMENTS dev_queue network device queue bytes number of bytes queued to the device queue DESCRIPTION Report the number of bytes...
netdev_tx_timeout(9)
NAME netdev_tx_timeout - transmit timeout processing SYNOPSIS void netdev_tx_timeout (struct net_device *dev , unsigned int txqueue ); ARGUMENTS dev Network device. txqueue index of hanging queue DESCRIPTION This routine is called when the transmit timer expires. That indicates the hardware is n...
netdev_txq_bql_complete_prefetchw(9)
NAME netdev_txq_bql_complete_prefetchw - prefetch bql data for write SYNOPSIS void netdev_txq_bql_complete_prefetchw (struct netdev_queue *dev_queue ); ARGUMENTS dev_queue pointer to transmit queue DESCRIPTION BQL enabled drivers might use this helper in their TX completion path, to give appropriate hint to the CP...
netdev_txq_bql_enqueue_prefetchw(9)
NAME netdev_txq_bql_enqueue_prefetchw - prefetch bql data for write SYNOPSIS void netdev_txq_bql_enqueue_prefetchw (struct netdev_queue *dev_queue ); ARGUMENTS dev_queue pointer to transmit queue DESCRIPTION BQL enabled drivers might use this helper in their ndo_start_xmit, to give appropriate hint to the CPU. SE...
netdev_update_features(9)
NAME netdev_update_features - recalculate device features SYNOPSIS void netdev_update_features (struct net_device *dev ); ARGUMENTS dev the device to check DESCRIPTION Recalculate dev->features set and send notifications if it has changed. Should be called after driver or hardware dependent conditions might ...
netdev_upper_dev_link(9)
NAME netdev_upper_dev_link - Add a link to the upper device SYNOPSIS int netdev_upper_dev_link (struct net_device *dev , struct net_device *upper_dev , struct netlink_ext_ack *extack ); ARGUMENTS dev device upper_dev new upper device extack netlink extended ack DESCRIPTION Adds a link ...
netdev_upper_dev_unlink(9)
NAME netdev_upper_dev_unlink - Removes a link to upper device SYNOPSIS void netdev_upper_dev_unlink (struct net_device *dev , struct net_device *upper_dev ); ARGUMENTS dev device upper_dev new upper device DESCRIPTION Removes a link to device which is upper to this one. The caller must hold the RTN...
netdev_upper_get_next_dev_rcu(9)
NAME netdev_upper_get_next_dev_rcu - Get the next dev from upper list SYNOPSIS struct net_device * netdev_upper_get_next_dev_rcu (struct net_device *dev , struct list_head **iter ); ARGUMENTS dev device iter list_head ** of the current position DESCRIPTION Gets the next device from the dev's u...
netdev_wait_allrefs_any(9)
NAME netdev_wait_allrefs_any - wait until all references are gone. SYNOPSIS struct net_device * netdev_wait_allrefs_any (struct list_head *list ); ARGUMENTS list list of net_devices to wait on DESCRIPTION This is called when unregistering network devices. Any protocol or device that holds a reference should ...
netdevice(7)
NAME netdevice - low-level access to Linux network devices SYNOPSIS #include <sys/ioctl.h> #include <net/if.h> DESCRIPTION This man page describes the sockets interface which is used to configure network devices. Linux supports some standard ioctls to configure network devices. They can be used on any socket...
netfs_alloc_folioq_buffer(9)
NAME netfs_alloc_folioq_buffer - Allocate buffer space into a folio queue SYNOPSIS int netfs_alloc_folioq_buffer (struct address_space *mapping , struct folio_queue **_buffer , size_t *_cur_size , ssize_t size , gfp_t gfp ); ARGUMENTS mapping Address space to set on the folio (or NULL). _buffer Pointe...
netfs_buffered_read_iter(9)
NAME netfs_buffered_read_iter - Filesystem buffered I/O read routine SYNOPSIS ssize_t netfs_buffered_read_iter (struct kiocb *iocb , struct iov_iter *iter ); ARGUMENTS iocb kernel I/O control block iter destination for the data read DESCRIPTION This is the ->read_iter routine for all filesystem...
netfs_buffered_write_iter_locked(9)
NAME netfs_buffered_write_iter_locked - write data to a file SYNOPSIS ssize_t netfs_buffered_write_iter_locked (struct kiocb *iocb , struct iov_iter *from , struct netfs_group *netfs_group ); ARGUMENTS iocb IO state structure (file, offset, etc.) from iov_iter with data to write netfs_gr...
netfs_clear_inode_writeback(9)
NAME netfs_clear_inode_writeback - Clear writeback resources pinned by an inode SYNOPSIS void netfs_clear_inode_writeback (struct inode *inode , const void *aux ); ARGUMENTS inode The inode to clean up aux Auxiliary data to apply to the inode DESCRIPTION Clear any writeback resources held by an...
netfs_dirty_folio(9)
NAME netfs_dirty_folio - Mark folio dirty and pin a cache object for writeback SYNOPSIS bool netfs_dirty_folio (struct address_space *mapping , struct folio *folio ); ARGUMENTS mapping The mapping the folio belongs to. folio The folio being dirtied. DESCRIPTION Set the dirty flag on a folio and pin...
netfs_end_io_direct(9)
NAME netfs_end_io_direct - declare that the direct i/o operation is done SYNOPSIS void netfs_end_io_direct (struct inode *inode ); ARGUMENTS inode file inode DESCRIPTION Declare that a direct I/O operation is done, and release the shared lock on inode->i_rwsem. SEE ALSO Kernel file ./fs/netfs/locking.c netfs_...
netfs_end_io_read(9)
NAME netfs_end_io_read - declare that the buffered read operation is done SYNOPSIS void netfs_end_io_read (struct inode *inode ); ARGUMENTS inode file inode DESCRIPTION Declare that a buffered read operation is done, and release the shared lock on inode->i_rwsem. SEE ALSO Kernel file ./fs/netfs/locking.c netf...
netfs_end_io_write(9)
NAME netfs_end_io_write - declare that the buffered write operation is done SYNOPSIS void netfs_end_io_write (struct inode *inode ); ARGUMENTS inode file inode DESCRIPTION Declare that a buffered write operation is done, and release the lock on inode->i_rwsem. SEE ALSO Kernel file ./fs/netfs/locking.c netfs_s...
netfs_extract_user_iter(9)
NAME netfs_extract_user_iter - Extract the pages from a user iterator into a bvec SYNOPSIS ssize_t netfs_extract_user_iter (struct iov_iter *orig , size_t orig_len , struct iov_iter *new , iov_iter_extraction_t extraction_flags ); ARGUMENTS orig The original iterator orig_len The amount of iterator ...
netfs_file_read_iter(9)
NAME netfs_file_read_iter - Generic filesystem read routine SYNOPSIS ssize_t netfs_file_read_iter (struct kiocb *iocb , struct iov_iter *iter ); ARGUMENTS iocb kernel I/O control block iter destination for the data read DESCRIPTION This is the ->read_iter routine for all filesystems that can ...
netfs_file_write_iter(9)
NAME netfs_file_write_iter - write data to a file SYNOPSIS ssize_t netfs_file_write_iter (struct kiocb *iocb , struct iov_iter *from ); ARGUMENTS iocb IO state structure from iov_iter with data to write DESCRIPTION Perform a write to a file, writing into the pagecache if possible and doing an u...
netfs_folioq_alloc(9)
NAME netfs_folioq_alloc - Allocate a folio_queue struct SYNOPSIS struct folio_queue * netfs_folioq_alloc (unsigned int rreq_id , gfp_t gfp , unsigned int trace ); ARGUMENTS rreq_id Associated debugging ID for tracing purposes gfp Allocation constraints trace Trace tag to indicate the...
netfs_folioq_free(9)
NAME netfs_folioq_free - Free a folio_queue struct SYNOPSIS void netfs_folioq_free (struct folio_queue *folioq , unsigned int trace ); ARGUMENTS folioq The object to free trace Trace tag to indicate which free DESCRIPTION Free and unaccount the folio_queue struct. SEE ALSO Kernel file ./fs/netfs/...
netfs_free_folioq_buffer(9)
NAME netfs_free_folioq_buffer - Free a folio queue. SYNOPSIS void netfs_free_folioq_buffer (struct folio_queue *fq ); ARGUMENTS fq The start of the folio queue to free DESCRIPTION Free up a chain of folio_queues and, if marked, the marked folios they point to. SEE ALSO Kernel file ./fs/netfs/misc.c netfs_a...
netfs_i_cookie(9)
NAME netfs_i_cookie - Get the cache cookie from the inode SYNOPSIS struct fscache_cookie * netfs_i_cookie (struct netfs_inode *ctx ); ARGUMENTS ctx The netfs inode to query DESCRIPTION Get the caching cookie (if enabled) from the network filesystem's inode. SEE ALSO Kernel file ./include/linux/netfs.h folio...
netfs_inode(9)
NAME netfs_inode - Get the netfs inode context from the inode SYNOPSIS struct netfs_inode * netfs_inode (struct inode *inode ); ARGUMENTS inode The inode to query DESCRIPTION Get the netfs lib inode context from the network filesystem's inode. The context struct is expected to directly follow on from the VFS ...
netfs_inode_init(9)
NAME netfs_inode_init - Initialise a netfslib inode context SYNOPSIS void netfs_inode_init (struct netfs_inode *ctx , const struct netfs_request_ops *ops , bool use_zero_point ); ARGUMENTS ctx The netfs inode to initialise ops The netfs's operations list use_zero_point ...
netfs_invalidate_folio(9)
NAME netfs_invalidate_folio - Invalidate or partially invalidate a folio SYNOPSIS void netfs_invalidate_folio (struct folio *folio , size_t offset , size_t length ); ARGUMENTS folio Folio proposed for release offset Offset of the invalidated region length Length of the invalidated regi...
netfs_perform_write(9)
NAME netfs_perform_write - Copy data into the pagecache. SYNOPSIS ssize_t netfs_perform_write (struct kiocb *iocb , struct iov_iter *iter , struct netfs_group *netfs_group ); ARGUMENTS iocb The operation parameters iter The source buffer netfs_group Grouping for dirty folios (eg. ceph sn...
netfs_prepare_write_failed(9)
NAME netfs_prepare_write_failed - Note write preparation failed SYNOPSIS void netfs_prepare_write_failed (struct netfs_io_subrequest *subreq ); ARGUMENTS subreq The subrequest to mark DESCRIPTION Mark a subrequest to note that preparation for write failed. SEE ALSO Kernel file ./fs/netfs/write_issue.c netfs_wr...
netfs_read_folio(9)
NAME netfs_read_folio - Helper to manage a read_folio request SYNOPSIS int netfs_read_folio (struct file *file , struct folio *folio ); ARGUMENTS file The file to read from folio The folio to read DESCRIPTION Fulfil a read_folio request by drawing data from the cache if possible, or the netfs if...
netfs_read_single(9)
NAME netfs_read_single - Synchronously read a single blob of pages. SYNOPSIS ssize_t netfs_read_single (struct inode *inode , struct file *file , struct iov_iter *iter ); ARGUMENTS inode The inode to read from. file The file we're using to read or NULL. iter The buffer we're readin...
netfs_read_subreq_progress(9)
NAME netfs_read_subreq_progress - Note progress of a read operation. SYNOPSIS void netfs_read_subreq_progress (struct netfs_io_subrequest *subreq ); ARGUMENTS subreq The read request that has terminated. DESCRIPTION This tells the read side of netfs lib that a contributory I/O operation has made some progress ...
netfs_read_subreq_terminated(9)
NAME netfs_read_subreq_terminated - Note the termination of an I/O operation. SYNOPSIS void netfs_read_subreq_terminated (struct netfs_io_subrequest *subreq ); ARGUMENTS subreq The I/O request that has terminated. DESCRIPTION This tells the read helper that a contributory I/O operation has terminated, one way o...
netfs_readahead(9)
NAME netfs_readahead - Helper to manage a read request SYNOPSIS void netfs_readahead (struct readahead_control *ractl ); ARGUMENTS ractl The description of the readahead request DESCRIPTION Fulfil a readahead request by drawing data from the cache if possible, or the netfs if not. Space beyond the EOF is zer...
netfs_release_folio(9)
NAME netfs_release_folio - Try to release a folio SYNOPSIS bool netfs_release_folio (struct folio *folio , gfp_t gfp ); ARGUMENTS folio Folio proposed for release gfp Flags qualifying the release DESCRIPTION Request release of a folio and clean up its private state if it's not busy. Returns tr...
netfs_resize_file(9)
NAME netfs_resize_file - Note that a file got resized SYNOPSIS void netfs_resize_file (struct netfs_inode *ctx , loff_t new_i_size , bool changed_on_server ); ARGUMENTS ctx The netfs inode being resized new_i_size The new file size changed_on_server The change was applied t...
netfs_single_mark_inode_dirty(9)
NAME netfs_single_mark_inode_dirty - Mark a single, monolithic object inode dirty SYNOPSIS void netfs_single_mark_inode_dirty (struct inode *inode ); ARGUMENTS inode The inode to mark DESCRIPTION Mark an inode that contains a single, monolithic object as dirty so that its writepages op will get called. If s...
netfs_start_io_direct(9)
NAME netfs_start_io_direct - declare the file is being used for direct i/o SYNOPSIS int netfs_start_io_direct (struct inode *inode ); ARGUMENTS inode file inode DESCRIPTION Declare that a direct I/O operation is about to start, and ensure that we block all buffered I/O. On exit, the function ensures that the ...
netfs_start_io_read(9)
NAME netfs_start_io_read - declare the file is being used for buffered reads SYNOPSIS int netfs_start_io_read (struct inode *inode ); ARGUMENTS inode file inode DESCRIPTION Declare that a buffered read operation is about to start, and ensure that we block all direct I/O. On exit, the function ensures that the...
netfs_start_io_write(9)
NAME netfs_start_io_write - declare the file is being used for buffered writes SYNOPSIS int netfs_start_io_write (struct inode *inode ); ARGUMENTS inode file inode DESCRIPTION Declare that a buffered read operation is about to start, and ensure that we block all direct I/O. SEE ALSO Kernel file ./fs/netfs/loc...
netfs_unbuffered_read_iter(9)
NAME netfs_unbuffered_read_iter - Perform an unbuffered or direct I/O read SYNOPSIS ssize_t netfs_unbuffered_read_iter (struct kiocb *iocb , struct iov_iter *iter ); ARGUMENTS iocb The I/O control descriptor describing the read iter The output buffer (also specifies read length) DESCRIPTION Per...
netfs_unbuffered_read_iter_locked(9)
NAME netfs_unbuffered_read_iter_locked - Perform an unbuffered or direct I/O read SYNOPSIS ssize_t netfs_unbuffered_read_iter_locked (struct kiocb *iocb , struct iov_iter *iter ); ARGUMENTS iocb The I/O control descriptor describing the read iter The output buffer (also specifies read length) D...
netfs_unbuffered_write_iter(9)
NAME netfs_unbuffered_write_iter - Unbuffered write to a file SYNOPSIS ssize_t netfs_unbuffered_write_iter (struct kiocb *iocb , struct iov_iter *from ); ARGUMENTS iocb IO state structure from iov_iter with data to write DESCRIPTION Do an unbuffered write to a file, writing the data directly to...
netfs_unpin_writeback(9)
NAME netfs_unpin_writeback - Unpin writeback resources SYNOPSIS int netfs_unpin_writeback (struct inode *inode , struct writeback_control *wbc ); ARGUMENTS inode The inode on which the cookie resides wbc The writeback control DESCRIPTION Unpin the writeback resources pinned by netfs_dirty_folio...
netfs_wait_for_outstanding_io(9)
NAME netfs_wait_for_outstanding_io - Wait for outstanding I/O to complete SYNOPSIS void netfs_wait_for_outstanding_io (struct inode *inode ); ARGUMENTS inode The netfs inode to wait on DESCRIPTION Wait for outstanding I/O requests of any type to complete. This is intended to be called from inode eviction rout...
netfs_write_begin(9)
NAME netfs_write_begin - Helper to prepare for writing [DEPRECATED] SYNOPSIS int netfs_write_begin (struct netfs_inode *ctx , struct file *file , struct address_space *mapping , loff_t pos , unsigned int len , struct folio **_folio , void **_fsdata ); ARGUMENTS ctx The netfs context file The fi...
netfs_write_subrequest_terminated(9)
NAME netfs_write_subrequest_terminated - Note the termination of a write operation. SYNOPSIS void netfs_write_subrequest_terminated (void *_op , ssize_t transferred_or_error ); ARGUMENTS _op The I/O request that has terminated. transferred_or_error The amount of data transferred or ...
netfs_writeback_single(9)
NAME netfs_writeback_single - Write back a monolithic payload SYNOPSIS int netfs_writeback_single (struct address_space *mapping , struct writeback_control *wbc , struct iov_iter *iter ); ARGUMENTS mapping The mapping to write from wbc Hints from the VM iter Data to write, must be I...
netif_attr_test_mask(9)
NAME netif_attr_test_mask - Test a CPU or Rx queue set in a mask SYNOPSIS bool netif_attr_test_mask (unsigned long j , const unsigned long *mask , unsigned int nr_bits ); ARGUMENTS j CPU/Rx queue index mask bitmask of all cpus/rx queues nr_bits number of bits in the bitmask DESCR...
netif_attr_test_online(9)
NAME netif_attr_test_online - Test for online CPU/Rx queue SYNOPSIS bool netif_attr_test_online (unsigned long j , const unsigned long *online_mask , unsigned int nr_bits ); ARGUMENTS j CPU/Rx queue index online_mask bitmask for CPUs/Rx queues that are online nr_bits number of bits in th...
netif_attrmask_next(9)
NAME netif_attrmask_next - get the next CPU/Rx queue in a cpu/Rx queues mask SYNOPSIS unsigned int netif_attrmask_next (int n , const unsigned long *srcp , unsigned int nr_bits ); ARGUMENTS n CPU/Rx queue index srcp the cpumask/Rx queue mask pointer nr_bits number of bits in the b...
netif_attrmask_next_and(9)
NAME netif_attrmask_next_and - get the next CPU/Rx queue in rc1p & rc2p SYNOPSIS int netif_attrmask_next_and (int n , const unsigned long *src1p , const unsigned long *src2p , unsigned int nr_bits ); ARGUMENTS n CPU/Rx queue index src1p the first CPUs/Rx queues mask pointer src2p ...
netif_carrier_event(9)
NAME netif_carrier_event - report carrier state event SYNOPSIS void netif_carrier_event (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Device has detected a carrier event but the carrier state wasn't changed. Use in drivers when querying carrier state asynchronously, to avoid missing ev...
netif_carrier_off(9)
NAME netif_carrier_off - clear carrier SYNOPSIS void netif_carrier_off (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Device has detected loss of carrier. SEE ALSO Kernel file ./net/sched/sch_generic.c netif_carrier_on(9), netif_carrier_event(9), dev_deactivate_many(9), psched_ratecfg_p...
netif_carrier_ok(9)
NAME netif_carrier_ok - test if carrier present SYNOPSIS bool netif_carrier_ok (const struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Check if carrier is present on device SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_node(9), napi_is_scheduled(9), napi_schedule(9), n...
netif_carrier_on(9)
NAME netif_carrier_on - set carrier SYNOPSIS void netif_carrier_on (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Device has detected acquisition of carrier. SEE ALSO Kernel file ./net/sched/sch_generic.c netif_carrier_off(9), netif_carrier_event(9), dev_deactivate_many(9), psched_ratec...
netif_device_attach(9)
NAME netif_device_attach - mark device as attached SYNOPSIS void netif_device_attach (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Mark device as attached from system and restart if needed. SEE ALSO Kernel file ./net/core/dev.c dev_add_pack(9), __dev_remove_pack(9), dev_remove_pac...
netif_device_detach(9)
NAME netif_device_detach - mark device as removed SYNOPSIS void netif_device_detach (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Mark device as removed from system and therefore no longer available. SEE ALSO Kernel file ./net/core/dev.c dev_add_pack(9), __dev_remove_pack(9), dev_...
netif_device_present(9)
NAME netif_device_present - is device available or removed SYNOPSIS bool netif_device_present (const struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Check if device has not been removed from system. SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_node(9), napi_is_schedule...
netif_dormant(9)
NAME netif_dormant - test if device is dormant SYNOPSIS bool netif_dormant (const struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Check if device is dormant. SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_node(9), napi_is_scheduled(9), napi_schedule(9), napi_schedule_i...
netif_dormant_off(9)
NAME netif_dormant_off - set device as not dormant. SYNOPSIS void netif_dormant_off (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Device is not in dormant state. SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_node(9), napi_is_scheduled(9), napi_schedule(9), napi_sch...
netif_dormant_on(9)
NAME netif_dormant_on - mark device as dormant. SYNOPSIS void netif_dormant_on (struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Mark device as dormant (as per RFC2863). The dormant state indicates that the relevant interface is not actually in a condition to pass packets (i.e., it is not...
netif_get_flags(9)
NAME netif_get_flags - get flags reported to userspace SYNOPSIS unsigned int netif_get_flags (const struct net_device *dev ); ARGUMENTS dev device DESCRIPTION Get the combination of flag bits exported through APIs to userspace. SEE ALSO Kernel file ./net/core/dev.c dev_add_pack(9), __dev_remove_pack(9),...
netif_get_num_default_rss_queues(9)
NAME netif_get_num_default_rss_queues - default number of RSS queues SYNOPSIS int netif_get_num_default_rss_queues (void ); ARGUMENTS void no arguments DESCRIPTION Default value is the number of physical cores if there are only 1 or 2, or divided by 2 if there are more. SEE ALSO Kernel file ./net/core/dev....
netif_get_port_parent_id(9)
NAME netif_get_port_parent_id - Get the device's port parent identifier SYNOPSIS int netif_get_port_parent_id (struct net_device *dev , struct netdev_phys_item_id *ppid , bool recurse ); ARGUMENTS dev network device ppid pointer to a storage for the port's parent identifier recurse ...
netif_inherit_tso_max(9)
NAME netif_inherit_tso_max - copy all TSO limits from a lower device to an upper SYNOPSIS void netif_inherit_tso_max (struct net_device *to , const struct net_device *from ); ARGUMENTS to netdev to update from netdev from which to copy the limits SEE ALSO Kernel file ./net/core/dev.c dev_a...
netif_is_multiqueue(9)
NAME netif_is_multiqueue - test if device has multiple transmit queues SYNOPSIS bool netif_is_multiqueue (const struct net_device *dev ); ARGUMENTS dev network device DESCRIPTION Check if device has multiple transmit queues SEE ALSO Kernel file ./include/linux/netdevice.h struct gro_node(9), napi_is_sc...
netif_is_same_ice(9)
NAME netif_is_same_ice - determine if netdev is on the same ice NIC as local PF SYNOPSIS bool netif_is_same_ice (struct ice_pf *pf , struct net_device *netdev ); ARGUMENTS pf local PF struct netdev netdev we are evaluating SEE ALSO Kernel file ./drivers/net/ethernet/intel/ice/ice_lag.c ic...
netif_napi_add(9)
NAME netif_napi_add - initialize a NAPI context SYNOPSIS void netif_napi_add (struct net_device *dev , struct napi_struct *napi , int (*poll)(struct napi_struct *, int) ); ARGUMENTS dev network device napi NAPI context poll polling function DESCRIPTION netif_napi_add must be use...