probe_irq_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… probe_irq_mask(9) β€” like, the Kernel API Manual, bestie πŸŽ€

ok so real talk, this is probe_irq_mask from the Kernel API Manual and it's genuinely one of those tiny functions that's doing the most. let's get into it 🫢


✨ NAME ✨

probe_irq_mask β€” scan a bitmap of interrupt lines πŸ”βœ¨


🌸 SYNOPSIS 🌸

unsigned int probe_irq_mask (unsigned long val );

like yeah that's the whole signature, she's compact πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • val β€” the mask of interrupts to consider πŸ‘€ like, these are the ones you're telling her to actually look at

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: she scans the interrupt lines and hands you back a bitmap of the active autodetect interrupts. that's the whole glow-up. ✨

and then β€” and this is the part i need you to clock β€” the interrupt probe logic state gets returned to its previous value. she puts everything back exactly how she found it. no mess, no leftovers, no "not me leaving the state changed" energy. iconique behavior fr fr πŸ‘‘


⭐ NOTE ⭐

ngl this is important: we need to scan all the irq's even though we will only return autodetect irq numbers β€” just so that we reset them all to a known state. like yes, even the ones you're not gonna hear about. everyone gets reset, periodt πŸ’€

🌈 SEE ALSO 🌈


and that's the whole page bestie, mwah 😘 one final thing β€” the source/version + date on this beauty is ./kernel/irq and October 2026, so go forth and scan those interrupt lines responsibly πŸ§šπŸ’œ

πŸ“¦ where this page comes from