irq_percpu_is_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ irq_percpu_is_enabled ✨

okay so this is a page from the Kernel API Manual (section 9, kernel devs only, no gatekeeping πŸ’…) and it's literally about checking if a per-cpu irq is turned on. tiny page, but iconic.


🌸 NAME 🌸

irq_percpu_is_enabled β€” check whether the per cpu irq is enabled 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

bool irq_percpu_is_enabled (unsigned int irq );

like, you pass it an irq and it hands you back a bool, that's the whole vibe ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • irq β€” the Linux irq number you wanna check, bestie. that's the one. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So here's the tea: you must call this from a non migratable context. not optional, not a suggestion, it's giving hard requirement 😭

What it does is return the enable state of a per cpu interrupt, on the current cpu β€” like, the one you're standing on right now. no cap. 🧚


🌈 SEE ALSO 🌈

the kernel file ./kernel/irq/manage.c is the source of truth here, and here's the whole squad of related pages πŸ’œ:


okay that's the whole page, love her πŸ’… this came out of ./kernel/irq and the version is dated October 2026 β€” go off, October 2026, you ate πŸ“βœ¨πŸ’€

πŸ“¦ where this page comes from