STRUCT GPIO_IRQ_TYPE(9)
π struct gpio_irq_type(9) β gpio irq configuration
okay bestie, so this is a page from the Kernel API Manual, and it's literally just a struct that holds how a gpio irq is configured. three little unsigned int fields, that's the whole vibe. let's get into it β¨
β¨ NAME β¨
struct gpio_irq_type β gpio irq configuration π
basically: the lil bundle of settings that tells the kernel what kind of interrupt we're dealing with. no cap.
πΈ SYNOPSIS πΈ
struct gpio_irq_type {
unsigned int trig_type;
unsigned int edge_type;
unsigned int logic_type;
};
that's it. that's the struct. three unsigned int members, nothing hiding in there, we love a clean layout π
π¦ Members π¦
trig_typeβ are we doing a level trigger or an edge trigger? that's the whole question this field answers πedge_typeβ single edge or both edge. (the page literally spells itsiglebestie, i'm not gonna lie to you π iconic typo, copying it verbatim anyway π«Ά)logic_typeβ positive trigger or negative trigger, pick your polarity π
lowkey a vibe check note: every one of these is an unsigned int, so nobody's out here passing a negative number by accident. please don't. π
π SEE ALSO π
- Kernel file
./drivers/pinctrl/pinctrl-equilibrium.h structβ the header where this whole situation lives, go look at it fr fr eqbr_pin_bank(9)β the pin bank friend πstruct eqbr_gpio_ctrl(9)β the gpio controller struct, main character energy βstruct eqbr_pinctrl_drv_data(9)β the pinctrl driver data struct, rounding out the squad πΈ
and that's a wrap! π this page came to you straight out of ./drivers/pinctrl, dated October 2026 β you're welcome bestie, go configure some interrupts 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