napi_is_scheduled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

napi_is_scheduled β€” test if NAPI is scheduled. Bestie, this is the napi_is_scheduled(9) page from the Kernel API Manual, and it's literally just a vibe check for NAPI scheduling πŸ’…βœ¨


✨ SYNOPSIS ✨

bool napi_is_scheduled (struct napi_struct *n );

🌸 ARGUMENTS 🌸

  • n β€” NAPI context. That's the struct you're checking, bestie 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜•: this check is "best-effort". With no locking implemented, a NAPI can be scheduled or terminate right after this check and produce not precise results. So like… don't treat it as a locked-in answer, because it lowkey isn't one 😭

NAPI_STATE_SCHED is an internal state, and napi_is_scheduled should not be used normally β€” napi_schedule should be used instead. periodt πŸ’…

🚨 Use this only if the driver really needs to check if a NAPI is scheduled β€” for example, in the context of a delayed timer that can be skipped if a NAPI is already scheduled. iykyk ✨

πŸ¦‹ RETURN πŸ¦‹

True if NAPI is scheduled, False otherwise. That's it, that's the return πŸŽ€


🌈 SEE ALSO 🌈

the full extended universe, no cap πŸ‘‘:


mwah πŸ’‹ β€” source/version: ./include/linux Β· date: October 2026 Β· page: napi_is_scheduled(9) 🫢✨

πŸ“¦ where this page comes from