.TH "pm_register" 9 "pm_register" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME pm_register \- register a device with power management .SH SYNOPSIS .B "struct pm_dev *" pm_register .BI "(pm_dev_t " type "," .BI "unsigned long " id "," .BI "pm_callback " callback ");" .SH ARGUMENTS .IP "type" 12 device type .IP "id" 12 device ID .IP "callback" 12 callback function .SH "DESCRIPTION" Add a device to the list of devices that wish to be notified about power management events. A \fBpm_dev\fP structure is returned on success, on failure the return is NULL. The callback function will be called in process context and it may sleep.