Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_set_class

Proto:void lock_set_class(struct lockdep_map *lock, const char *name, struct lock_class_key *key, unsigned int subclass, unsigned long ip)

Type:void

Parameter:

TypeParameterName
struct lockdep_map *lock
const char *name
struct lock_class_key *key
unsigned intsubclass
unsigned longip
4436  If Value for the false possibility is greater at compile time(lockdep_recursion) Then Return
4439  raw_local_irq_save(flags)
4440  lockdep_recursion = 1
4441  Check whether we follow the irq-flags state precisely:
4442  If __lock_set_class(lock, name, key, subclass, ip) Then We are building curr_chain_key incrementally, so double-check* it from scratch, to make sure that it's done correctly:
4444  lockdep_recursion = 0
4445  raw_local_irq_restore(flags)