PM_BUSY_COMPONENT(9F) | Kernel Functions for Drivers | PM_BUSY_COMPONENT(9F) |
#include <sys/ddi.h> #include <sys/sunddi.h> int pm_busy_component(dev_info_t *dip, int component);
int pm_idle_component(dev_info_t *dip, int component);
component
The pm_idle_component() function marks component idle, recording the time that component went idle. This function must be called once for each call to pm_busy_component(). A component which is idle is available to be power-managed by the system. The pm_idle_component() function has no effect if the component is already idle, except to update the system's notion of when the device went idle.
If these functions are called as a result of entry into the driver's attach(9E), detach(9E) or power(9E) entry point, these functions must be called from the same thread which entered attach(9E), detach(9E) or power(9E).
DDI_SUCCESS
DDI_FAILURE
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface stability | Committed |
Writing Device Drivers
July 21, 2004 | OmniOS |