napi_get_defer_hard_irqs(9)
π napi_get_defer_hard_irqs β like, the kernel-API manual page, bestie β¨
okay so this is napi_get_defer_hard_irqs(9), and yes that "(9)" means it lives in the kernel API manual section β very "I'm not a regular function, I'm a kernel function" energy π
πΈ NAME πΈ
napi_get_defer_hard_irqs β bestie, this literally gets the NAPI's defer_hard_irqs. that's the whole job. iconic, honestly π«Ά
β¨ SYNOPSIS β¨
u32 napi_get_defer_hard_irqs (const struct napi_struct *n );
like, you hand it a NAPI and it hands you back a u32. match made in heaven π
π ARGUMENTS π
nβ the napi struct you wanna pull thedefer_hard_irqsfield from. that's it, that's the argument. she's lowkey the whole point π¦
β RETURN β
it returns the per-NAPI value of the defar_hard_irqs field. and yes bestie, the manpage literally spells it defar_hard_irqs β not me, not my fault, I'm not gonna "fix" it, I'm just the messenger π (iykyk, typos are forever π)
π₯ SEE ALSO π₯
the kernel file ./net/core/dev.h says hi π and also these absolute legends:
napi_set_defer_hard_irqs(9)netdev_set_defer_hard_irqs(9)napi_get_gro_flush_timeout(9)napi_set_gro_flush_timeout(9)netdev_set_gro_flush_timeout(9)napi_get_irq_suspend_timeout(9)napi_set_irq_suspend_timeout(9)
go read those too, they're all in their get/set era and it's giving "complete collection" π§π
no cap β if you only remember one thing: getter in, getter out, per-NAPI value returned. slay π
π and that's the page!! this one came out of ./net/core, dated October 2026, and the header/footer vibes are literally just the same doc wearing a little hat β signed, sealed, delivered by your favorite kernel bestie πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms