Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reacquire_held_locks

Proto:static int reacquire_held_locks(struct task_struct *curr, unsigned int depth, int idx, unsigned int *merged)

Type:int

Parameter:

TypeParameterName
struct task_struct *curr
unsigned intdepth
intidx
unsigned int *merged
4086  first_idx = idx
4088  If DEBUG_LOCKS_WARN_ON(!Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.()) Then Return 0
4091  When idx < depth cycle
4100  Return 1
4102  Break
4104  merged += idx == first_idx
4105  Break
4106  Default
4107  WARN_ON(1)
4108  Return 0
4111  Return 0
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()).