netif_napi_add_tx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is netif_napi_add_tx(9), straight outta the Kernel API Manual, and she’s here to initialize a NAPI context that’s gonna be used for Tx only. That’s the whole name, no cap. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

Bestie, here’s the signature exactly as it is, don’t come for me:

void netif_napi_add_tx (struct net_device *dev , struct napi_struct *napi , int (*poll)(struct napi_struct *, int) );

🫢 ARGUMENTS 🫢

  • dev β€” the network device. Your little network icon, basically. 🌐
  • napi β€” the NAPI context. The main character of this setup. πŸ‘‘
  • poll β€” the polling function. The callback that does the actual polling. ⭐

πŸ’… DESCRIPTION πŸ’…

okay so here’s the tea: this is a variant of netif_napi_add, and it should be used from drivers that are using NAPI to exclusively poll a TX queue. πŸ¦‹

The whole point is that it keeps us from adding it into napi_hash[], so we’re not out here polluting that hash table. Clean, no mess, iconic behavior. ✨

πŸ”₯ SEE ALSO πŸ”₯

The whole friend group, literally all of them:


muah πŸ’‹ β€” source: ./include/linux, date: October 2026. stay slay, bye 🫢

πŸ“¦ where this page comes from