irq_remove_generic_chip(9)
π« irq_remove_generic_chip(9) π«
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy here β and today's main character is irq_remove_generic_chip. it's giving cleanup era. it's giving "we're done here, pack it up." let's get into it π
β¨ NAME β¨
irq_remove_generic_chip β Remove a chip. literally that's it, that's the whole job. no cap. π
πΈ SYNOPSIS πΈ
void irq_remove_generic_chip (struct irq_chip_generic *gc , u32 msk ,
unsigned int clr , unsigned int set );
like, look at her. four params, returns nothing, absolute void icon. π
π¦ ARGUMENTS π¦
gcβ the Generic irq chip holding all data. she's the one carrying everything, the backpack friend of this whole operation π«Άmskβ a Bitmask holding the irqs to initialize relative togc->irq_base. yes, the word is initialize, we're just reporting what the manpage says, don't come for me πclrβ theIRQ_*bits to clear. bye bits, we hardly knew ye πsetβ theIRQ_*bits to set. hello bits, welcome to the function π
π DESCRIPTION π
so what does she actually do? Remove up to 32 interrupts starting from gc->irq_base. that's the tea. up to thirty-two. not 33, not 31 β up to 32, starting at gc->irq_base, periodt. β¨
pro tip from your girl: notice msk is described as "initialize" while the function is named remove β that's just what the page says, so I'm relaying it faithfully. don't @ me, @ the manpage π
π₯ SEE ALSO π₯
Kernel file ./kernel/irq/generic-chip.c β that's where the source lives, go say hi π
and the whole friend group, in this exact order, no skipping:
irq_gc_noop(9)irq_gc_mask_disable_reg(9)irq_gc_mask_set_bit(9)irq_gc_mask_clr_bit(9)irq_gc_unmask_enable_reg(9)irq_gc_ack_set_bit(9)irq_gc_ack_clr_bit(9)irq_gc_mask_disable_and_ack_set(9)irq_gc_eoi(9)irq_gc_set_wake(9)irq_alloc_generic_chip(9)irq_domain_alloc_generic_chips(9)irq_domain_remove_generic_chips(9)__irq_alloc_domain_generic_chips(9)irq_get_domain_generic_chip(9)irq_setup_generic_chip(9)irq_setup_alt_chip(9)
like, that's a whole group chat right there and every single one of them is invited π§π
and that's the page!! mwah π
cute little sign-off before you go: this whole thing comes from ./kernel/irq, dated October 2026, and it's filed under irq_remove_generic_chip(9) in the Kernel API Manual. stay slay, go remove some chips 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