netif_carrier_off (9) Linux Manual Page
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. Copyright
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. Copyright
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 upper list, starting from iter position. The caller must hold RCU read lock. Copyright
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 RTNL lock. Copyright
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); Arguments dev device upper_dev new upper device Description Adds a link to device which is upper to this one. The caller must hold the RTNL lock. On a failure a negative errno code is returned. On success the…
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 have changed that influence the features. Copyright
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. Copyright
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 CPU. Copyright
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 routing socket. Copyright
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 sending/completion to the network device hardware queue. bytes should be a good approximation and should…
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. Copyright
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 data pointer that is used by rx handler Description Register a receive handler for a device. This handler will then be called from __netif_receive_skb. A negative errno…
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 Copyright
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 Copyright
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 device wants to inform the rest of the network about some sort…
netdev_master_upper_dev_link – Add a master link to the upper device Synopsis int netdev_master_upper_dev_link(struct net_device *dev, struct net_device *upper_dev, void *upper_priv, void *upper_info); Arguments dev device upper_dev new upper device upper_priv upper device private upper_info upper info to be passed down via notifier Description Adds a link to device which is upper to this one. In…
netdev_master_upper_dev_get_rcu – Get master upper device Synopsis struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev); Arguments dev device Description Find a master upper device and return pointer to it or NULL in case it’s not there. The caller must hold the RCU read lock. Copyright
netdev_master_upper_dev_get – Get master upper device Synopsis struct net_device *netdev_master_upper_dev_get(struct net_device *dev); Arguments dev device Description Find a master upper device and return pointer to it or NULL in case it’s not there. The caller must hold the RTNL lock. Copyright
netdev_lower_state_changed – Dispatch event about lower device state change Synopsis void netdev_lower_state_changed(struct net_device *lower_dev, void *lower_state_info); Arguments lower_dev device lower_state_info state to dispatch Description Send NETDEV_CHANGELOWERSTATE to netdev notifiers with info. The caller must hold the RTNL lock. Copyright
netdev_lower_get_next_private_rcu – Get the next ->private from the lower neighbour list, RCU variant Synopsis void *netdev_lower_get_next_private_rcu(struct net_device *dev, struct list_head **iter); Arguments dev device iter list_head ** of the current position Description Gets the next netdev_adjacent->private from the dev’s lower neighbour list, starting from iter position. The caller must hold RCU read lock. Copyright
netdev_lower_get_next_private – Get the next ->private from the lower neighbour list Synopsis void *netdev_lower_get_next_private(struct net_device *dev, struct list_head **iter); Arguments dev device iter list_head ** of the current position Description Gets the next netdev_adjacent->private from the dev’s lower neighbour list, starting from iter position. The caller must hold either hold the RTNL lock or its…