函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep.c Create Date:2022-07-27 10:50:17
Last Modify:2020-03-17 14:16:01 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:match_held_lock

函数原型:static int match_held_lock(const struct held_lock *hlock, const struct lockdep_map *lock)

返回类型:int

参数:

类型参数名称
const struct held_lock *hlock
const struct lockdep_map *lock
4013  如果instance恒等于lock则返回:1
4016  如果references
4017  class等于class_cache[0]
4019  如果非classclass等于look_up_lock_class(lock, 0)
4028  如果非class则返回:0
4036  如果DEBUG_LOCKS_WARN_ON(!nest_lock)则返回:0
4039  如果class_idx恒等于classlock_classes则返回:1
4043  返回:0
调用者
名称描述
find_held_lock@depth must not be zero
__lock_is_held
__lock_pin_lock
__lock_repin_lock
__lock_unpin_lock