---
name: "pm_register"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/pm_register"
---

# pm\_register(9)

register a device with power management

## NAME

pm\_register - register a device with power management

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
