---
name: "netif_tx_napi_add"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/netif_tx_napi_add"
---

# netif\_tx\_napi\_add(9)

initialize a NAPI context

## NAME

netif\_tx\_napi\_add - initialize a NAPI context

## SYNOPSIS

**void netif\_tx\_napi\_add(struct net\_device \*** *dev***, struct napi\_struct \*** *napi***, int (\****poll***) (struct napi\_struct \*, int), int** *weight***);**

## ARGUMENTS

*dev*

network device

*napi*

NAPI context

*poll*

polling function

*weight*

default weight

## DESCRIPTION

This variant of **netif\_napi\_add** should be used from drivers using NAPI to exclusively poll a TX queue. This will avoid we add it into napi\_hash\[\], thus polluting this hash table.

## COPYRIGHT
