函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kcmp_lock

函数原型:static int kcmp_lock(struct mutex *m1, struct mutex *m2)

返回类型:int

参数:

类型参数名称
struct mutex *m1
struct mutex *m2
89  如果m2大于m1swap - swap values of @a and @b*@a: first value*@b: second value(m1, m2)
92  err等于mutex_lock_killable(m1)
93  如果非err此条件成立可能性大(为编译器优化)(m1 != m2)则
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  如果errmutex_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  返回:err
调用者
名称描述
SYSCALL_DEFINE5