Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check whether any element of the @lock->class_cache[] array refers to a* registered lock class. The caller must hold either the graph lock or the* RCU read lock.

Proto:static bool lock_class_cache_is_registered(struct lockdep_map *lock)

Type:bool

Parameter:

TypeParameterName
struct lockdep_map *lock
5076  When i < CLASSHASH_SIZE cycle
5077  head = classhash_table + i
5079  When j < NR_LOCKDEP_CACHING_CLASSES cycle If class_cache[j] == class Then
5081  Return true
5084  Return false
Caller
NameDescribe
__lockdep_reset_lockThe caller must hold the graph lock. Does not sleep.