函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ww_mutex.h Create Date:2022-07-27 07:46:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ww_acquire_init - initialize a w/w acquire context*@ctx: w/w acquire context to initialize*@ww_class: w/w class of the context* Initializes an context to acquire multiple mutexes of the given w/w class

函数原型:static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, struct ww_class *ww_class)

返回类型:void

参数:

类型参数名称
struct ww_acquire_ctx *ctx
struct ww_class *ww_class
132  task等于当前进程
133  stamp等于atomic_long_inc_return_relaxed( & stamp)
134  acquired等于0
135  wounded = false
136  is_wait_die等于is_wait_die
143  debug_check_no_locks_freed((void * )ctx, ctx的长度)
144  lockdep_init_map( & dep_map, acquire_name, & acquire_key, 0)
146  mutex_acquire( & dep_map, 0, 0, _RET_IP_)
调用者
名称描述
torture_ww_mutex_lock
__test_mutex
test_aa
test_abba_work
test_abba
test_cycle_work
stress_inorder_work
stress_reorder_work