alchemy_gpio2_enable_int(9)
π alchemy_gpio2_enable_int(9) β the kernel API manual, bestie edition π
okay so you found the alchemy_gpio2_enable_int(9) page in the Kernel API Manual β congrats, this one's a β¨macroβ¨ and it's lowkey iconic once you get the vibe. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
alchemy_gpio2_enable_int β turn on a GPIO2 pin's contribution to the shared irq. that's it, that's the whole thing, but the details are where it gets juicy π
πΈ SYNOPSIS πΈ
void alchemy_gpio2_enable_int (int gpio2 );
π¦ ARGUMENTS π¦
gpio2β the GPIO2 pin you wanna activate, fr fr. valid range is200...215π
π DESCRIPTION π
okay so here's the lore π«Ά: GPIO208-215 all share one interrupt line going to the INTC. they get and'ed with a per-pin enable bit, and then finally or'ed together to make a single irq request β which is genuinely so useful for active-high sources, no cap β
with this function you can enable a pin's individual contribution to that int request. cute, right? BUT β and this is the main character energy part β like all other GPIO-based interrupts, the INTC also has to be programmed to accept the GPIO208_215 interrupt. it's a two-party situation, you can't just show up alone π
π NOTE π
- calling this macro is only necessary for GPIO208-215. every other GPIO2-based interrupt has its own request to the INTC, so they don't need this π
- please, please consult your Alchemy databook for more information! it's giving required reading π
- on the Au1550, GPIOs
201-205also have a shared interrupt request line to the INTC,GPIO201_205. this function works for those too β slay π - (
200-215by default). no sanity checks are made, β so yeah, it will not vibe check your input for you. you're on your own there ππ₯
bestie warning: no sanity checks means no sanity checks. bad input does not get caught. periodt.
π SEE ALSO π
- Kernel file
./arch/mips/include/asm/mach-au1x00/gpio-au1000.h alchemy_gpio2_disable_int(9),alchemy_gpio2_enable(9),alchemy_gpio2_disable(9)
okay that's the whole page, you ate that π
β¨ source is ./arch/mips/include/asm/mach-a... and it's dated October 2026 β signed, sealed, delivered, and filed under alchemy_gpio2_enable_int(9) π§π byeee π«Ά
π¦ 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