Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_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.

Proto:static inline void netif_tx_napi_add(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int ), int weight)

Type:void

Parameter:

TypeParameterName
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.