函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\console.c Create Date:2022-07-27 10:57:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:There are three cases when a VT switch on suspend/resume are required:* 1) no driver has indicated a requirement one way or another, so preserve* the old behavior* 2) console suspend is disabled, we want to see debug messages across* suspend/resume* 3)

函数原型:static bool pm_vt_switch(void)

返回类型:bool

参数:

110  bool ret = true
112  mutex_lock( & vt_switch_mutex)
113  如果链表为空则转到:out
116  如果非console_suspend_enabled则转到:out
120  如果required则转到:out
124  ret = false
125  out :
126  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
127  返回:ret
调用者
名称描述
pm_prepare_console
pm_restore_console