Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kcmp_lock

Proto:static int kcmp_lock(struct mutex *m1, struct mutex *m2)

Type:int

Parameter:

TypeParameterName
struct mutex *m1
struct mutex *m2
89  If m2 > m1 Then swap - swap values of @a and @b*@a: first value*@b: second value(m1, m2)
92  err = mutex_lock_killable(m1)
93  If Not err && Value is more likely to compile time(m1 != m2) Then
94  err = mutex_lock_killable_nested(m2, For trivial one-depth nesting of a lock-class, the following* global define can be used. (Subsystems with multiple levels* of nesting should define their own lock-nesting subclasses.))
95  If err Then 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.
99  Return err
Caller
NameDescribe
SYSCALL_DEFINE5