函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\netdevice.h Create Date:2022-07-27 07:03:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:抢网络设备发送锁

函数原型:static inline void netif_tx_lock(struct net_device *dev)

返回类型:void

参数:

类型参数名称
struct net_device *dev
4005  加自旋锁
4006  cpu等于当前cpu ID()
4007 i小于num_tx_queues循环
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)
调用者
名称描述
netif_tx_lock_bh