STRUCT ACPI_GPIO_EVENT(9)
π struct acpi_gpio_event(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's all about struct acpi_gpio_event, and honestly it's giving "little struct that holds the whole vibe of an ACPI GPIO event handler" π
πΈ NAME πΈ
struct acpi_gpio_event β the data that lives behind an ACPI GPIO event handler, no cap π«Ά
β SYNOPSIS β
struct acpi_gpio_event {
struct list_head node;
acpi_handle handle;
irq_handler_t handler;
unsigned int pin;
unsigned int irq;
unsigned long irqflags;
bool irq_is_wake;
bool irq_requested;
struct gpio_desc *desc;
};
look at her. nine fields, zero notes π
π¦ Members π¦
nodeβ this is the list-entry for the events list that belongs to thestruct acpi_gpio_chip. she's literally just holding her place in line πhandleβ the handle of the ACPI method that gets executed when the IRQ triggers. like, this is the ACPI method's whole @ when the interrupt comes knocking π₯handlerβ the handler function you pass torequest_irqwhen you're requesting the IRQ. this one does the actual work when the interrupt fires β¨pinβ the GPIO pin number, on thestruct gpio_chip. yes, exactly that one πΈirqβ the Linux IRQ number for this event, used withrequest_irq/free_irq. it's the IRQ's government name fr fr πirqflagsβ the flags you hand off torequest_irqwhen requesting the IRQ. the little preferences sheet for the interrupt, iykyk π¦irq_is_wakeβ this one'strue-ish in spirit: it's set if the ACPI flags indicate the IRQ is a wakeup source. nap-time alarm energy πirq_requestedβTrueifrequest_irqhas been done. basically a "have we claimed this yet" bool, and it's icon status πdescβ thestruct gpio_descfor the GPIO pin of this event. the main character pointer for the pin itself β
π§ SEE ALSO π§
Kernel file ./drivers/gpio/gpiolib-acpi-core.c and its besties: struct acpi_gpio_info(9), acpi_get_gpiod(9), acpi_gpio_get_io_resource(9), acpi_gpiochip_request_interrupts(9), acpi_gpiochip_free_interrupts(9), acpi_get_gpiod_by_index(9), acpi_get_gpiod_from_data(9), acpi_dev_gpio_irq_wake_get_by(9), acpi_gpio_count(9)
go read those too, bestie, they're all in the friend group π«Άπ
ngl, every single field up there matters β no skipping, that's the whole assignment πβ¨
and that's the page!! mwah π this came from the kernel source dir ./drivers/gpio, dated October 2026, and yeah β we were literally reading struct acpi_gpio_event(9) the whole time. slay, go touch some GPIOs (safely) ππ¦π
π¦ 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