函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_vt_switch_required - indicate VT switch at suspend requirements*@dev: device*@required: if true, caller needs VT switch at suspend/resume time* The different console drivers may or may not require VT switches across* suspend/resume, depending on how

函数原型:void pm_vt_switch_required(struct device *dev, bool required)

返回类型:void

参数:

类型参数名称
struct device *dev
boolrequired
50  mutex_lock( & vt_switch_mutex)
52  如果dev恒等于dev
54  required等于required
55  转到:out
59  entry等于开辟内存
60  如果非entry则转到:out
63  required等于required
64  dev等于dev
66  添加链表项
67  out :
68  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.