Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sch_generic.h Create Date:2022-07-28 06:07:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Are all TX queues of the device empty?

Proto:static inline bool qdisc_all_tx_empty(const struct net_device *dev)

Type:bool

Parameter:

TypeParameterName
const struct net_device *dev
739  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
740  When i < num_tx_queues cycle
741  txq = netdev_get_tx_queue(dev, i)
742  q = fetch RCU-protected pointer for dereferencing(qdisc)
744  If Not qdisc_is_empty(q) Then
746  Return false
749  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
750  Return true