Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__lock_pin_lock

Proto:static struct pin_cookie __lock_pin_lock(struct lockdep_map *lock)

Type:struct pin_cookie

Parameter:

TypeParameterName
struct lockdep_map *lock
4318  cookie = NIL_COOKIE
4319  curr = current process
4322  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 cookie
4325  When i < lockdep_depth cycle
4326  hlock = held_locks + i
4328  If match_held_lock(hlock, lock) Then
4335  pin_count += val
4336  Return cookie
4340  WARN(1, "pinning an unheld lock\n")
4341  Return cookie
Caller
NameDescribe
lock_pin_lock