Queries a Power Management Event.
Standard C Library (libc.a)
#include <sys/pm.h> int pm_event_query(Event, Action); int *Event; int *Action;
The pm_event_query subroutine queries a Power Management (PM) event.
|Event||Returns one of the following events:
|Action||Returns one of the following actions (system state) to be requested. It is a default state transition action in PM core:|
|PM_SUCCESS||Indicates successful completion.|
|PM_ERROR||Indicates an error condition. The variable errno is set to identify the error.|
|EINVAL||The argument or command is not valid.|
|EBUSY||Another process is blocked for query.|
The pm_event_query subroutine is part of the Base Operating System (BOS) Runtime.
The pm_control_state (pm_control_state Subroutine) subroutine, pm_control_parameter (pm_control_parameter Subroutine) subroutine, pm_battery_control (pm_battery_control Subroutine) subroutine.