netif_tx_lock (9) Linux Manual Page
netif_tx_lock – grab network device transmit lock Synopsis void netif_tx_lock(struct net_device *dev); Arguments dev network device Description Get network device transmit lock 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.
netif_tx_lock – grab network device transmit lock Synopsis void netif_tx_lock(struct net_device *dev); Arguments dev network device Description Get network device transmit lock Copyright
netif_stop_subqueue – stop sending packets on subqueue Synopsis void netif_stop_subqueue(struct net_device *dev, u16 queue_index); Arguments dev network device queue_index sub queue index Description Stop individual transmit queue of a device with multiple transmit queues. Copyright
netif_stop_queue – stop transmitted packets Synopsis void netif_stop_queue(struct net_device *dev); Arguments dev network device Description Stop upper layers calling the device hard_start_xmit routine. Used for flow control when transmit resources are unavailable. Copyright
netif_start_subqueue – allow sending packets on subqueue Synopsis void netif_start_subqueue(struct net_device *dev, u16 queue_index); Arguments dev network device queue_index sub queue index Description Start individual transmit queue of a device with multiple transmit queues. Copyright
netif_start_queue – allow transmit Synopsis void netif_start_queue(struct net_device *dev); Arguments dev network device Description Allow upper layers to call the device hard_start_xmit routine. Copyright
netif_stacked_transfer_operstate – transfer operstate Synopsis void netif_stacked_transfer_operstate(const struct net_device *rootdev, struct net_device *dev); Arguments rootdev the root or lower level device to transfer state from dev the device to transfer operstate to Description Transfer operational state from root to device. This is normally called when a stacking relationship exists between the root device and the…
netif_set_real_num_rx_queues – set actual number of RX queues used Synopsis int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq); Arguments dev Network device rxq Actual number of RX queues Description This must be called either with the rtnl_lock held or before registration of the net device. Returns 0 on success, or a negative error code. If called…
netif_rx – post buffer to the network code Synopsis int netif_rx(struct sk_buff *skb); Arguments skb buffer to post Description This function receives a packet from a device driver and queues it for the upper (protocol) levels to process. It always succeeds. The buffer may be dropped during processing for congestion control or by the protocol…
netif_running – test if up Synopsis bool netif_running(const struct net_device * dev); Arguments dev network device Description Test if the device has been brought up. Copyright
netif_receive_skb – process receive buffer from network Synopsis int netif_receive_skb(struct sk_buff *skb); Arguments skb buffer to process Description netif_receive_skb is the main receive data processing function. It always succeeds. The buffer may be dropped during processing for congestion control or by the protocol layers. This function may only be called from softirq context and interrupts…
netif_queue_stopped – test if transmit queue is flowblocked Synopsis bool netif_queue_stopped(const struct net_device * dev); Arguments dev network device Description Test if transmit queue on device is currently unable to send. Copyright
netif_oper_up – test if device is operational Synopsis bool netif_oper_up(const struct net_device * dev); Arguments dev network device Description Check if carrier is operational Copyright
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 Copyright
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 This routine should set an upper limit on the number of RSS queues used by default by multiqueue devices. Copyright
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 ‘up’) but is in a “pending” state, waiting for some external…
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. Copyright
netif_dormant – test if carrier present Synopsis bool netif_dormant(const struct net_device * dev); Arguments dev network device Description Check if carrier is present on device Copyright
netif_device_present – is device available or removed Synopsis bool netif_device_present(struct net_device * dev); Arguments dev network device Description Check if device has not been removed from system. Copyright
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. Copyright
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. Copyright