ev_int_get_mask(9)
π ev_int_get_mask β the Kernel API Manual, bestie edition π
okay so picture this: you're deep in kernel land, section 9, and you just need to know whether some interrupt source is masked or not. That's it. That's the whole vibe. This little function is the glow-up moment where the kernel tells you the mask status, and honestly? iconic. π
β¨ NAME β¨
ev_int_get_mask β returns the mask for the specified interrupt source π¦
No cap, that's the entire job. It gets the mask. It returns it. Slay.
β¨ SYNOPSIS β¨
unsigned int ev_int_get_mask (unsigned int interrupt , unsigned int
*mask );
Look at that signature, bestie. unsigned int in, unsigned int pointer in, and a little unsigned int comes back out to tell you how it went. Main character energy fr fr. π₯
β¨ ARGUMENTS β¨
interruptβ the interrupt number π just tell it which interrupt you're curious about and it'll go find out.maskβ returned mask for this interrupt (0=enabled, 1=disabled) π write those numbers down, bestie, because they're the whole point:0means enabled,1means disabled. Lowkey the most important detail on this whole page ngl.
β¨ DESCRIPTION β¨
Returns 0 for success, or an error code. πΈ
That's the tea. If it worked, you get 0 β the good zero, the happy zero, the "we ate" zero. If something went sideways, you get an error code instead, and you'll just have to deal with that. Periodt. π
heads up bestie:0as a return value means success, but a0written into*maskmeans the interrupt is enabled. Same digit, totally different meaning, don't get it twisted π
β¨ SEE ALSO β¨
- Kernel file
./arch/powerpc/include/asm/epapr_hcalls.hπ ev_int_set_config(9)ev_int_get_config(9)ev_int_set_mask(9)ev_int_eoi(9)ev_byte_channel_send(9)ev_byte_channel_receive(9)ev_byte_channel_poll(9)ev_int_iack(9)ev_doorbell_send(9)ev_idle(9)
That's the whole friend group right there β go read the rest of them, iykyk π«Ά
and that's a wrap, bestie!! this page lives in ./arch/powerpc/include/asm and it's dated October 2026, so go forth and check your masks responsibly πβ¨π
π¦ 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