Previous: , Up: ACPI API   [Contents][Index]


3.2 ACPI reference

The following procedures are available in the (netlink acpi) module.

Scheme Procedure: connect-events

Open a connection to the kernel, and set it up to listen for ACPI event notifications. The procedure returns three new procedures for managing this connection: read-selector which returns a file descriptor which can be passed to the select procedure to wait for data from the kernel, process-data action which reads and evaluates the data, and calls ACTION event on it, and finally close-connection which will terminate the connection with the kernel.

Scheme Procedure: event-display-class event

Extract the display class from the event. This will be a string.

Scheme Procedure: event-bus-id event

Extract the bus-id from the event, again a string.

Scheme Procedure: event-kind event

Extract the type of the event, a number, nominally unsigned 32 bit.

Scheme Procedure: event-data event

Extract the data from the event, a number, also nominally unsigned 32 bit.