函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__mutex_init

函数原型:void __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key)

返回类型:void

参数:

类型参数名称
struct mutex *lock
const char *name
struct lock_class_key *key
42  atomic_long_set( & owner, 0)
43  spin_lock_init( & wait_lock)
44  初始化链表头
49  debug_mutex_init(lock, name, key)
调用者
名称描述
init_class_Y
init_class_Z
init_class_X
ww_mutex_initww_mutex_init - initialize the w/w mutex*@lock: the mutex to be initialized*@ww_class: the w/w class the mutex should belong to* Initialize the w/w mutex to unlocked state and associate it with the given* class.