6、evicetype,deviceclass)和驱动程序提供了相应的编程接口,以便它们参与它们所关心的设备的电源管理。这些接口覆盖了系统级别的睡眠和runtime级别的管理。设备电源管理操作===================================================子系统和驱动程序的设备电源管理操作,都定义在dev_pm_ops结构中:123456789101112structdev_pm_ops{ int(*prepare)(structdevice*dev); void(*complete)(structdevice*dev); i
7、nt(*suspend)(structdevice*dev); int(*resume)(structdevice*dev); int(*freeze)(structdevice*dev); 13141516171819202122232425262728293031323334353637int(*thaw)(structdevice*dev); int(*poweroff)(structdevice*dev); int(*restore)(structdevice*dev); int(*suspend_noirq)(structdevice*dev); i