[Previous] [Contents] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

pmd_power()

Support function for implementing _IO_POWER messages

Synopsis:

#include <sys/pm.h>

int pmd_power(void *ctp, 
              void *msg, 
              pmd_attr_t *attr);

Arguments:

ctp
Pointer to the resmgr_context_t structure for the message request.
msg
Pointer to the io_power_t message.
pmd
Pointer to the pmd_attr_t structure for the device.

Library:

libpm

Description:

The pmd_power() is a support function that implements the actions required to handle the _IO_POWER message types.

This is called by the iofunc_power() in the iofunc layer to handle these messages.

If the driver overrides this function, it should call pmd_power() directly. The driver's mount structure should be initialized to point to the pmd_attr_t in the mount-> power field.

Returns:

Various status values passed back to the resmgr layer to reply to the client message.

Classification:

Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

iofunc_power()


[Previous] [Contents] [Next]