Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_is_held_type

Proto:int lock_is_held_type(const struct lockdep_map *lock, int read)

Type:int

Parameter:

TypeParameterName
const struct lockdep_map *lock
intread
4512  ret = 0
4514  If Value for the false possibility is greater at compile time(lockdep_recursion) Then Return 1
4517  raw_local_irq_save(flags)
4518  Check whether we follow the irq-flags state precisely:
4520  lockdep_recursion = 1
4521  ret = __lock_is_held(lock, read)
4522  lockdep_recursion = 0
4523  raw_local_irq_restore(flags)
4525  Return ret