函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_shared_classes

函数原型:static void init_shared_classes(void)

返回类型:void

参数:

166  init_class_X( & Locks that we initialize dynamically as well so that* e.g. X1 and X2 becomes two instances of the same class,* but X* and Y* are different classes. We do this so that* we do not trigger a real lockup:, & rwlock_X1, & mutex_X1, & rwsem_X1)
167  init_class_X( & lock_X2, & rwlock_X2, & mutex_X2, & rwsem_X2)
169  init_class_Y( & lock_Y1, & rwlock_Y1, & mutex_Y1, & rwsem_Y1)
170  init_class_Y( & lock_Y2, & rwlock_Y2, & mutex_Y2, & rwsem_Y2)
172  init_class_Z( & lock_Z1, & rwlock_Z1, & mutex_Z1, & rwsem_Z1)
173  init_class_Z( & lock_Z2, & rwlock_Z2, & mutex_Z2, & rwsem_Z2)
调用者
名称描述
reset_locks
locking_selftest测试锁的API是否正常使用