.TH "pm_find" 9 "pm_find" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME pm_find \- find a device .SH SYNOPSIS .B "struct pm_dev *" pm_find .BI "(pm_dev_t " type "," .BI "struct pm_dev *" from ");" .SH ARGUMENTS .IP "type" 12 type of device .IP "from" 12 where to start looking .SH "DESCRIPTION" Scan the power management list for devices of a specific type. The return value for a matching device may be passed to further calls to this function to find further matches. A NULL indicates the end of the list. To search from the beginning pass NULL as the \fIfrom\fP value. The caller MUST hold the pm_devs_lock lock when calling this function. The instant that the lock is dropped all pointers returned may become invalid.