Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_tx_lock - grab network device transmit lock*@dev: network device* Get network device transmit lock

Proto:static inline void netif_tx_lock(struct net_device *dev)

Type:void

Parameter:

TypeParameterName
struct net_device *dev
4005  spin_lock( & tx_global_lock)
4006  cpu = smp_processor_id()
4007  When i < num_tx_queues cycle
4008  txq = netdev_get_tx_queue(dev, i)
4016  __netif_tx_lock(txq, cpu)
4017  set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
4018  __netif_tx_unlock(txq)