acpi_registe...keup_handler(9)
β¨ acpi_registe...keup_handler(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's literally called acpi_registe...keup_handler β yes the name is truncated like that in the header, no I didn't do it, that's just how it's printed, and yes it lives in section 9 of the manual. buckle up π
πΈ NAME πΈ
acpi_register_wakeup_handler β register a wakeup handler π
that's the whole vibe, it registers a wakeup handler, iconic behaviour honestly
π¦ SYNOPSIS π¦
int acpi_register_wakeup_handler (int wake_irq , bool (*wakeup)(void
*context) , void *context );
it returns an int, it takes three things, it's giving very straightforward main character energy β¨
π ARGUMENTS π
wake_irqβ the IRQ through which the device may receive wakeups π like, this is the interrupt line your device is chilling onwakeupβ the wakeup-handler to call when the SCI has triggered a wakeup π₯ note the signature:bool (*wakeup)(void *context), it's a function pointer, it's fancycontextβ the context you pass to the handler when calling it π«Ά it gets handed straight back to yourwakeupfunction, no cap
π DESCRIPTION π
so here's the tea β drivers that may share an IRQ with the SCI can use this to register a handler. and that handler returns true when the device they are managing wants to trigger a wakeup π literally the whole point.
that's it. that's the function. lowkey elegant ngl πΈ
β SEE ALSO β
kernel file ./drivers/acpi/wakeup.c is where this lives, and go peek at these besties too:
and that's the page!! π§ from ./drivers/acpi, dated October 2026, and the header/footer both say acpi_registe...keup_handler(9) because we love a consistent (if slightly truncated) brand π
stay hydrated, read your kernel source, 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