zynq_gpio_set_irq_type(9)
β¨ zynq_gpio_set_irq_type(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one lives in section 9 and it's literally called zynq_gpio_set_irq_type β the whole vibe is setting the irq type for a gpio pin π
πΈ NAME πΈ
zynq_gpio_set_irq_type β Set the irq type for a gpio pin π
π¦ SYNOPSIS π¦
int zynq_gpio_set_irq_type (struct irq_data *irq_data , unsigned int
type );
so it takes a struct irq_data * and an unsigned int and hands you back an int, no cap β¨
π ARGUMENTS π
irq_dataβ the irq data containing the irq number of the gpio pin. like, it's giving "which pin are we even talking about" energy πtypeβ the interrupt type that is to be set for that gpio pin. this is the main character of the whole function tbh π
π DESCRIPTION π
Bestie, here's the tea π this function gets the gpio pin number and its bank from the gpio pin number, and then it configures the INT_TYPE, INT_POLARITY and INT_ANY registers. that's it, that's the whole glow-up π₯
β RETURN β
Returns 0, or a negative error otherwise. and now the receipts, because the mapping is very much specific π§
TYPE-EDGE_RISINGβINT_TYPE-1,INT_POLARITY-1,INT_ANY-0TYPE-EDGE_FALLINGβINT_TYPE-1,INT_POLARITY-0,INT_ANY-0TYPE-EDGE_BOTHβINT_TYPE-1,INT_POLARITY-NA,INT_ANY-1TYPE-LEVEL_HIGHβINT_TYPE-0,INT_POLARITY-1,INT_ANY-NATYPE-LEVEL_LOWβINT_TYPE-0,INT_POLARITY-0,INT_ANY-NA
like, please don't mix these up, the hardware will simply not slay π
π SEE ALSO π
Kernel file ./drivers/gpio/gpio-zynq.c, plus the whole friend group π«Ά
struct zynq_gpio(9)struct zynq_platform_data(9)zynq_gpio_is_zynq(9)gpio_data_ro_bug(9)zynq_gpio_get_bank_pin(9)zynq_gpio_get_value(9)zynq_gpio_set_value(9)zynq_gpio_dir_in(9)zynq_gpio_dir_out(9)zynq_gpio_get_direction(9)zynq_gpio_irq_mask(9)zynq_gpio_irq_unmask(9)zynq_gpio_irq_ack(9)zynq_gpio_irq_enable(9)zynq_gpio_irqhandler(9)zynq_gpio_probe(9)zynq_gpio_remove(9)
k that's the whole page, go read the source in ./drivers/gpio if you wanna fact-check me, iykyk π
mwah, bye bestie β this one's filed under ./drivers/gpio, dated October 2026, and it's page zynq_gpio_set_irq_type(9) of the Kernel API Manual. periodt. π
β¨
π¦ 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