.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PM_FIND" "" "06 October 2005" "" "" .SH NAME pm_find \- find a device .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct pm_dev * pm_find (pm_dev_t \fItype\fB, struct pm_dev * \fIfrom\fB); \fR .SH "ARGUMENTS" .TP \fB\fItype\fB\fR type of device .TP \fB\fIfrom\fB\fR where to start looking .SH "DESCRIPTION" .PP 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. .PP To search from the beginning pass NULL as the \fIfrom\fR value. .PP 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.