This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Detach a driver from the power manager
#include <sys/pm.h> int pmd_detach(pmd_attr_t *pmd);
libpm
The pmd_detach() detaches the device from the power manager and invalidates the handle in pmd-> hdl.
The pmd_detach() allows a driver that manages multiple devices to cleanly power down and detach specific devices from the system power management policy.
Driver connections to the power manager are automatically detached during abnormal termination (in which case the device may be left in an unknown state that cannot be recovered from).
This function, currently, always succeeds. |
For more information, see the device driver chapter.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |