ec_install_handlers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ec_install_handlers πŸ’–

okay bestie, welcome to the Kernel API Manual entry for ec_install_handlers β€” yes, the whole vibe is ACPI EC setup and we're gonna get you fluent, no cap. ✨

🌸 NAME 🌸

ec_install_handlers β€” install service callbacks and register query methods. literally her whole job. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int ec_install_handlers (struct acpi_ec *ec , struct acpi_device *device
       , bool call_reg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ec β€” the target EC. that's the one we're setting up, bestie.
  • device β€” the ACPI device object corresponding to ec.
  • call_reg β€” if _REG should be called to notify OpRegion availability.

✨ DESCRIPTION ✨

So here's the tea: this function installs a handler for the EC address space type unless it has been installed already. no double-install chaos, we love to see it. πŸ’–

If device is not NULL, it also looks for EC query methods in the namespace and registers them, and installs an event handler for the EC β€” either GPE or GPIO IRQ β€” if possible. iconic behavior, honestly. πŸ”₯

🌈 RETURN 🌈

  • -ENODEV if the address space handler cannot be installed, which means "unable to handle transactions" β€” yeah, that's the mood. 😭
  • 0 (success) otherwise. slay. βœ…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/acpi/ec.c β€” go read the source, iykyk. 🫢


xoxo, sign-off from source/version ./drivers/acpi, dated October 2026, page ec_install_handlers(9) πŸ’Œβœ¨

πŸ“¦ where this page comes from