ibm_handle_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

bestie, this is ibm_handle_events(9) from the Kernel API Manual β€” welcome to the ACPI callback page, it's giving kernel-hotplug realness πŸ’…

πŸŽ€ NAME πŸŽ€

ibm_handle_events β€” listens for ACPI events for the IBM37D0 device. no cap.

✨ SYNOPSIS ✨

void ibm_handle_events (acpi_handle handle , u32 event , void *context );

🫢 ARGUMENTS 🫢

  • handle β€” an ACPI handle to the device that caused the event. like, which device woke us up πŸ’–
  • event β€” the event info (device specific). the details are device-coded, iykyk.
  • context β€” passed context (our notification struct). this is our little carry-on bag πŸŽ€

🌸 DESCRIPTION 🌸

okay so this method is registered as a callback with the ACPI subsystem, and it gets called when this device has an event to notify the OS of. very main character callback energy.

the events actually come from the device as two events that get synthesized into one event with data by this function. the event ID comes first, and then the slot number that caused it. we report this as one event to the OS. slay, one clean notification ✨

from section 5.6.2.2 of the ACPI 2.0 spec, I understand that the OSPM will only re-enable the interrupt that causes this event AFTER this method has returned β€” thereby enforcing serial access for the notification struct. periodt, that's the whole safety vibe πŸ’…

bestie this serial-access detail is not decorative: the return-before-re-enable order is what keeps the notification struct from getting chaotic.

πŸ’œ SEE ALSO πŸ’œ


source/version: ./drivers/pci/hotplug Β· date: October 2026 Β· page: ibm_handle_events(9) β€” bye bestie, hydrate and check your interrupts πŸ«ΆπŸ’–

πŸ“¦ where this page comes from