[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1

pm_system_event_query System Call

Purpose

Controls and queries the PM event.

Syntax

#include <pm.h>
int pm_system_event_query (event);
int event;

Description

The pm_system_event_query system call queries the PM event.

event Returns one of the following events:
PM_EVENT_NONE
PM_EVENT_LID_OPEN
PM_EVENT_LID_CLOSE
PM_EVENT_LOW_BATTERY
PM_EVENT_SYSTEM_IDLE_TIMER
PM_EVENT_POWER_SWITCH_OFF
PM_EVENT_POWER_SWITCH_ON
PM_EVENT_SPECIFIED_TIME
PM_EVENT_MOUSE
PM_EVENT_KEYBOARD
PM_EVENT_EXTRA_INPUTDD
PM_EVENT_EXTRA_BUTTON
PM_EVENT_TERMINATE
PM_EVENT_AC
PM_EVENT_DC
PM_SUCCESS Indicates successful completion.
PM_ERROR Indicates an error condition. The variable errno is set to identify the error.

PM library

The PM library is supported to control/query PM information from application programs.

Error Codes

EINVAL Invalid argument.

Implementation Specifics

The pm_system_event_query system call is part of the Base Operation System (BOS) Runtime.

Related Information

The pm_control_parameter system call, pm_battery_control subroutine, pm_control_state system call.


[ Previous | Next | Contents | Glossary | Home | Search ]