Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void pm_vt_switch_required(struct device *dev, bool required)

Type:void

Parameter:

TypeParameterName
struct device *dev
boolrequired
50  mutex_lock( & vt_switch_mutex)
52  If dev == dev Then
54  required = required
55  Go to out
59  entry = Allocation memory
60  If Not entry Then Go to out
63  required = required
64  dev = dev
66  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
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.