netif_napi_add(9)

netif_napi_add9

Initialize a napi context

Usage

void netif_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

Overview

netif_napi_add must be used to initialize a napi context prior to calling *any* of the other napi related functions.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.