linux内核休眠、唤醒流程分析之恢复(九)-爱代码爱编程
挂起之后如果接收到恢复事件, 则内核会从结束休眠,进入到恢复流程,过程和挂起流程对应。
// kernel\power\suspend.c
/**
* suspend_enter - Make the system enter the given sleep state.
* @state: System sleep state to enter.
* @wakeup: Returns information that the sleep state should not be re-entered.
*
* This function should be called after devices have been suspended.
*/
static int suspend_enter(suspend_state_t state, bool *wakeup
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接: https://blog.csdn.net/wang_518/article/details/111054134