.\" 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 "DEVICE_SUSPEND" "" "06 October 2005" "" "" .SH NAME device_suspend \- suspend/remove all devices on the device ree .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int device_suspend (u32 \fIstate\fB, u32 \fIlevel\fB); \fR .SH "ARGUMENTS" .TP \fB\fIstate\fB\fR state we're entering .TP \fB\fIlevel\fB\fR what stage of the suspend process we're at (emb: it seems that these two arguments are described backwards of what they actually mean .. is this correct?) .SH "DESCRIPTION" .PP The entries in the global device list are inserted such that they're in a depth-first ordering. So, simply interate over the list, and call the driver's suspend or remove callback for each device.