int apm_get_event (apm_event_t * event, apm_eventinfo_t * info);
The APM BIOS provides a polled information for event reporting. The BIOS expects to be polled at least every second when events are pending. When a message is found the caller should poll until no more messages are present. However, this causes problems on some laptops where a suspend event notification is not cleared until it is acknowledged.
Additional information is returned in the info pointer, providing that APM 1.2 is in use. If no messges are pending the value 0x80 is returned (No power management events pending).