Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep.c Create Date:2022-07-28 09:49:59
Last Modify:2020-03-17 14:16:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:match_held_lock

Proto:static int match_held_lock(const struct held_lock *hlock, const struct lockdep_map *lock)

Type:int

Parameter:

TypeParameterName
const struct held_lock *hlock
const struct lockdep_map *lock
4013  If instance == lock Then Return 1
4016  If references Then
4017  class = class_cache[0]
4019  If Not class Then class = look_up_lock_class(lock, 0)
4028  If Not class Then Return 0
4036  If DEBUG_LOCKS_WARN_ON(!nest_lock) Then Return 0
4039  If class_idx == class - lock_classes Then Return 1
4043  Return 0
Caller
NameDescribe
find_held_lock@depth must not be zero
__lock_is_held
__lock_pin_lock
__lock_repin_lock
__lock_unpin_lock