Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__mutex_init

Proto:void __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key)

Type:void

Parameter:

TypeParameterName
struct mutex *lock
const char *name
struct lock_class_key *key
42  atomic_long_set( & owner, 0)
43  Process spin lock initialization( & wait_lock)
44  Initialization list head
49  debug_mutex_init(lock, name, key)
Caller
NameDescribe
init_class_Y
init_class_Z
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.
init_class_X