我觀察到整個設備拓撲結構基於Buses --> Device + Driver
。總線上提供了linux (suspend + resume)
提供的電源管理。設備驅動程序中還有類似的功能。Linux中的電源管理框架
struct bus_type { ***
int (*suspend)(struct device *dev, pm_message_t state);
int (*resume)(struct device *dev);
*** }
struct device_driver { ***
int (*suspend) (struct device *dev, pm_message_t state);
int (*resume) (struct device *dev);
*** }
那麼這是如何實現的?
你想知道什麼樣的存在?內核中如何實現電源管理? – shinymetal
謝謝昨天晚上在閱讀文檔時得到了答案。 – shingaridavesh