[Previous] [Contents] [Next]

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

attach() callback

Called to attach a client to a power manager node

Synopsis:

#include <sys/pmm.h>

void attach(void *data, resmgr_context_t *ctp, int count);

Library:

libc

Description:

This function is called when a client attaches to 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.

This is called for all clients:

It 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]