pm_register(9)

pm_register9

Register a device with power management

Usage

struct pm_dev * pm_register(pm_dev_t type, unsigned long id, pm_callback callback);

Arguments

type

device type

id

device ID

callback

callback function

Overview

Add a device to the list of devices that wish to be notified about power management events. A &pm_dev structure is returned on success, on failure the return is NULL.

The callback function will be called in process context and it may sleep.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.