函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize an rwsem:

函数原型:void __init_rwsem(struct rw_semaphore *sem, const char *name, struct lock_class_key *key)

返回类型:void

参数:

类型参数名称
struct rw_semaphore *sem
const char *name
struct lock_class_key *key
331  debug_check_no_locks_freed((void * )sem, sem的长度)
332  lockdep_init_map( & dep_map, name, key, 0)
337  atomic_long_set( & count, RWSEM_UNLOCKED_VALUE)
338  raw_spin_lock_init( & wait_lock)
339  初始化链表头
340  atomic_long_set( & Write owner or one of the read owners as well flags regarding* the current state of the rwsem. Can be used as a speculative* check to see if the write owner is running on the cpu., 0L)
调用者
名称描述
init_class_Y
init_class_Z
__percpu_init_rwsem
init_class_X
init_held_spin
init_held_wlock
init_held_rlock
init_held_mutex
init_held_wsem
init_held_rsem