Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:@depth must not be zero

Proto:static struct *find_held_lock(struct task_struct *curr, struct lockdep_map *lock, unsigned int depth, int *idx)

Type:struct

Parameter:

TypeParameterName
struct task_struct *curr
struct lockdep_map *lock
unsigned intdepth
int *idx
4054  i = depth - 1
4055  hlock = held_locks + i
4056  ret = hlock
4057  If match_held_lock(hlock, lock) Then Go to out
4060  ret = NULL
4061  When i >= 0 cycle
4067  If irq_context != irq_context Then
4068  ret = NULL
4069  Break
4071  If match_held_lock(hlock, lock) Then
4072  ret = hlock
4073  Break
4077  out :
4078  idx = i
4079  Return ret
Caller
NameDescribe
__lock_set_class
__lock_downgrade
__lock_releaseRemove the lock from the list of currently held locks - this gets* called on mutex_unlock()/spin_unlock*() (or on a failed* mutex_lock_interruptible()).