[Previous] [Contents] [Next]

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

pmm_policy_funcs()

Return a pointer to the policy function table

Synopsis:

#include <sys/pmm.h>

pmm_policy_funcs_t * pmm_policy_funcs();

Library:

libc

Description:

This function returns a pointer to the policy function table:


Note: if the policy is going to override any functions, it should do this before calling pmm_init()

pmm_init() creates the root power manager object, which results in a call to the create() function.


The caller can then set individual members of this structure to override the default policy actions. For example:

  pmm_policy_funcs_t *funcs;

  funcs = pmm_policy_funcs();
  funcs->create = my_create;
  funcs->destroy = my_destroy;

Returns:

Classification:

QNX Neutrino

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

See also:


[Previous] [Contents] [Next]