iochar_regdrv_power()

Register as a power-managed device driver

Synopsis:

#include <sys/io-char.h>

int iochar_regdrv_power(TTYDEV *dev, 
                        TTYINITPOWER *init,
                        unsigned flags);

Arguments:

dev
A pointer to the structure that represents the specific device that data has been received on.
init
A pointer to the structure that represents the power-managed device registration info.
flags
Common power-management flags. One of:

Description:

This function registers with io-char as a power-managed driver. If you're writing a power-managed device driver, call iochar_regdrv_power() before calling ttc(TTC_INIT_POWER, ...).

Returns:

0
Success.
-1
An error occurred.

Classification:

QNX Neutrino

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

See also:

TTYDEV, ttc(), tti(), tto()