request_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 request_irq(9) β€” the kernel API manual, bestie edition 🌸

okay so real talk, this one lives in section 9 of the kernel API manual and it's literally the "hey kernel, wake me up when the hardware tugs on this wire" function πŸ’…


✨ NAME ✨

request_irq β€” add a handler for an interrupt line πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int request_irq (unsigned int irq , irq_handler_t handler , unsigned
long flags , const char *name , void *dev );

like yes bestie, that's the whole signature, no cap ✨

πŸ’– ARGUMENTS πŸ’–

  • irq β€” the interrupt line you're allocating. this is the actual wire you're claiming, so be normal about it 🫢
  • handler β€” the function that gets called when the IRQ occurs. it's the primary handler for threaded interrupts. and if you pass NULL? the default primary handler gets installed instead, iconic default behavior πŸ’…
  • flags β€” the handling flags. all of them. the vibes of how this interrupt gets handled 🌈
  • name β€” the name of the device generating this interrupt. you know, so people know whose interrupt this is πŸ‘‘
  • dev β€” a cookie passed to the handler function πŸ“ (yes, a cookie. it's for you. hold onto it.)

🧚 DESCRIPTION 🧚

so this call allocates an interrupt and establishes a handler β€” both, in one go, main character energy fr fr πŸ”₯

for the full deets though? see the documentation for request_threaded_irq. that's where the details live, iykyk πŸ’œ

⭐ SEE ALSO ⭐


k that's the whole page bestie, mwah πŸ’‹ this one's from ./include/linux, dated October 2026, and it's request_irq(9) β€” go interrupt something slay πŸ’–βœ¨

πŸ“¦ where this page comes from