acpi_register_gsi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– acpi_register_gsi β€” the kernel API manual, but make it make sense πŸ’–

okay so bestie, welcome to acpi_register_gsi(9) from the Kernel API Manual. no cap, this one is short and sweet and honestly kind of iconic. it's the little function that maps a GSI to a linux IRQ number. let me break it down πŸŽ€


✨ NAME ✨

acpi_register_gsi β€” literally the function that maps a GSI to a linux IRQ number πŸ’…


✨ SYNOPSIS ✨

int acpi_register_gsi (struct device *dev , u32 gsi , int trigger , int
polarity );

look at her. four arguments, one int return, no drama. we stan a tidy signature 🫢


✨ ARGUMENTS ✨

  • dev β€” the device for which the IRQ has to be mapped. it's giving "who is this for" energy 🌸
  • gsi β€” the GSI IRQ number, i.e. the thing you're mapping πŸ‘‘
  • trigger β€” the trigger type of the GSI number to be mapped ⚑
  • polarity β€” the polarity of the GSI to be mapped 🧚

like yes ma'am, four little params and every single one matters πŸ™ˆ


✨ RETURN ✨

on success you get a valid linux IRQ number πŸŽ‰ and on failure you get -EINVAL 😭 (bestie check your inputs, fr fr).


✨ SEE ALSO ✨

living in the kernel file ./drivers/acpi/irq.c, and here's the whole friend group πŸ’œ:


and that's the whole page, no notes πŸ”₯ this little beauty lives in ./drivers/acpi and the version stamped on her is October 2026. go map some IRQs, bestie, you're gonna slay πŸ¦‹β­πŸ’–

πŸ“¦ where this page comes from