devm_free_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_free_irq(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's short and sweet and honestly iconic for it.


🌸 NAME 🌸

devm_free_irq β€” free an interrupt πŸŽ€


✨ SYNOPSIS ✨

void devm_free_irq (struct device *dev , unsigned int irq , void *dev_id );

like, that's the whole signature. no cap. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device you wanna free the interrupt for, bestie πŸ’…
  • irq β€” the interrupt line you're freeing, literally the number
  • dev_id β€” the device identity you're freeing, yes it matters

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: except for that extra dev argument, this function takes the same arguments and does the same thing as free_irq. same energy, just with the device tacked on. periodt. πŸ‘‘

the way that matters tho: this one β€” not free_irq β€” is what you should use to manually free IRQs that were allocated with devm_request_irq. so if you used the devm version to get it, use the devm version to yeet it. matching sets, fr fr πŸŽ€


🌈 SEE ALSO 🌈


🧚 go read the friends too, they're all in the same lil squad πŸ’–

and that's the whole page, bestie πŸ’… this one came from ./kernel/irq, dated October 2026, and the header says devm_free_irq(9) β€” go off, interrupt queen πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from