[Previous] [Contents] [Next]

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

detach() callback

Called to detach a client from a power manager node

Synopsis:

#include <sys/pmm.h>

void detach(void *data, resmgr_context_t *ctp, 
                   int count, unsigned flags);

Library:

libc

Description:

This function is called when a client detaches from a power manager node:

data
Policy specific data returned by the create() function when the node was created
ctp
Obtain information about the client process
count
Current count of clients attached to the node
flags
Contain the following:
PMM_NODE_DETACH
The driver responsible for managing the node's power mode has just been detached.

This call is provided to allow the policy to keep track of client references if necessary.

There is no default action for this call.

Returns:

Classification:

QNX Neutrino

Safety:
Cancellation point Unknown
Interrupt handler Unknown
Signal handler Unknown
Thread Unknown

See also:


[Previous] [Contents] [Next]