irq_check_status_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ irq_check_status_bit πŸ’…

okay bestie, welcome to the kernel API manual β€” this one's a little function from irq_check_status_bit(9) and honestly it's giving "small but mighty" πŸŽ€


🌸 NAME 🌸

irq_check_status_bit β€” literally just checks whether bits in the irq descriptor status are set πŸ‘€ no cap, that's the whole vibe check.


πŸ¦‹ SYNOPSIS πŸ¦‹

bool irq_check_status_bit (unsigned int irq , unsigned int bitmask );

yep, that's it. two args, one bool coming back at you πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • irq β€” the linux irq number 🧚 this is the one you're peeking at
  • bitmask β€” the bitmask to evaluate 🌟 like, the actual bits you're asking about

⭐ RETURN ⭐

Returns True if one of the bits in bitmask is set πŸ”₯ that's the whole answer. if none of them are set you get false, bestie, that's just how it goes πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./kernel/irq/manage.c β€” go read it, it's iconic πŸ“–βœ¨

and here's the whole friend group of related calls, fr fr:

like, that's a whole squad 🫢 you're gonna want to know them.


ngl this one's short, but knowing whether those status bits are set is lowkey important, so don't sleep on it πŸ’…

and that's a wrap, bestie! 🌈 this little pearl comes straight out of the ./kernel/irq corner of the source tree, and the page is dated October 2026 β€” slay, see you in the next one! πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from