函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_tx_napi_add - initialize a NAPI context*@dev: network device*@napi: NAPI context*@poll: polling function*@weight: default weight* This variant of netif_napi_add() should be used from drivers using NAPI* to exclusively poll a TX queue.

函数原型:static inline void netif_tx_napi_add(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int ), int weight)

返回类型:void

参数:

类型参数名称
struct net_device *dev
struct napi_struct *napi
int (*poll
intweight
2255  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
2256  _napi_add - initialize a NAPI context*@dev: network device*@napi: NAPI context*@poll: polling function*@weight: default weight* netif_napi_add() must be used to initialize a NAPI context prior to calling* *any* of the other NAPI-related functions.