Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\console.c Create Date:2022-07-28 09:57:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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)

Proto:static bool pm_vt_switch(void)

Type:bool

Parameter:Nothing

110  bool ret = true
112  mutex_lock( & vt_switch_mutex)
113  If list_empty - tests whether a list is empty*@head: the list to test. Then Go to out
116  If Not console_suspend_enabled Then Go to out
120  If required Then Go to 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  Return ret
Caller
NameDescribe
pm_prepare_console
pm_restore_console