napi_schedule(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… napi_schedule(9)

okay so bestie, welcome to another episode of the Kernel API Manual β€” yes this is the napi_schedule page, the one you keep tabbing to at 2am. let's get into it πŸŽ€


✨ NAME ✨

napi_schedule β€” schedule NAPI poll. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

bool napi_schedule (struct napi_struct *n );

lowkey the shortest synopsis ever and honestly? slay. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • n β€” the NAPI context. your fave struct. the main character of this whole function. πŸ’–

πŸ’« DESCRIPTION πŸ’«

so what does it actually do. it schedules the NAPI poll routine to be called β€” but only if it's not already running. that's the whole deal. no cap.

it's giving "hey bestie, are you up? because if not, we need to run the poll routine." and if you're already up? it's not gonna double-book you. nope. πŸ™ˆ


⭐ RETURN ⭐

it hands back true if we actually schedule a NAPI, and false if not. periodt.

and if you're sitting there like "wait, why not πŸ₯Ί" β€” go read napi_schedule_prep, it's got the additional reasons on why a NAPI might not get scheduled. iykyk.


πŸ¦‹ SEE ALSO πŸ¦‹

all the siblings and cousins, no gatekeeping:

Kernel file ./include/linux/netdevice.h struct gro_node(9), and also:

like, the whole friend group fr fr 🫢


reminder bestie: this page lives in ./include/linux and it's dated October 2026. don't @ me when the kernel moves on πŸ’€

and that's the page!! mwah πŸ’‹ this has been napi_schedule(9) from the Kernel API Manual, shipped from ./include/linux, version-dated October 2026 β€” go forth and schedule responsibly, queen πŸ‘‘βœ¨πŸŒˆ

πŸ“¦ where this page comes from