Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__lock_is_held

Proto:static inline __attribute__((__always_inline__)) int __lock_is_held(const struct lockdep_map *lock, int read)

Type:int

Parameter:

TypeParameterName
const struct lockdep_map *lock
intread
4299  curr = current process
4302  When i < lockdep_depth cycle
4303  hlock = held_locks + i
4305  If match_held_lock(hlock, lock) Then
4306  If read == -1 || read == read Then Return 1
4309  Return 0
4313  Return 0
Caller
NameDescribe
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation
lock_is_held_type