acpi_gpiochi...t_interrupts(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… acpi_gpiochip_request_interrupts ✨

okay so this is a page from the Kernel API Manual, section 9 β€” yes bestie, that's the (9) after the name, it's giving very much "kernel internals, handle with care" energy 🫢


🌸 NAME 🌸

acpi_gpiochip_request_interrupts β€” registers an isr for gpio chip ACPI events πŸ’– literally its whole personality.


✨ SYNOPSIS ✨

void acpi_gpiochip_request_interrupts(struct gpio_chip *chip);

that's it. that's the whole call. no return value, it's a void, she doesn't owe you a status code πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the GPIO chip. like, the chip chip. the actual one. not a vibe, a struct gpio_chip *. 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: ACPI5 platforms can use GPIO signaled ACPI events β€” that's the whole thing, that's the tea ⭐

these GPIO interrupts get handled by ACPI event methods, and those methods need to be called from the GPIO chip's interrupt handler. iykyk. so acpi_gpiochip_request_interrupts goes and does the matchmaking πŸ’–:

  1. it finds out which GPIO pins actually have ACPI event methods attached to them πŸ”
  2. it assigns interrupt handlers for those pins πŸ‘‘
  3. those handlers call the ACPI event methods for the pins in question ✨

no cap, that's the entire job. she finds the pins, she wires up the handlers, she dips. main character energy fr fr πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page bestie, go forth and register those interrupts πŸ’œ

🌷 sign-off time: this little number lives under ./drivers/gpio, dated October 2026, and answers to acpi_gpiochip_request_interrupts(9) πŸŽ€ bye pookie, slay responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from