Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__lock_unpin_lock

Proto:static void __lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie cookie)

Type:void

Parameter:

TypeParameterName
struct lockdep_map *lock
struct pin_cookiecookie
4366  curr = current process
4369  If Value for the false possibility is greater at compile time(!We want to turn all lock-debugging facilities on/off at once,* via a global flag. The reason is that once a single bug has been* detected and reported, there might be cascade of followup bugs* that would just muddy the log. So we report the first one and) Then Return
4372  When i < lockdep_depth cycle
4373  hlock = held_locks + i
4375  If match_held_lock(hlock, lock) Then
4376  If WARN(!pin_count, "unpinning an unpinned lock\n") Then Return
4379  pin_count -= val
4381  If WARN((int)pin_count < 0, "pin count corrupted\n") Then pin_count = 0
4384  Return
4388  WARN(1, "unpinning an unheld lock\n")
Caller
NameDescribe
lock_unpin_lock