Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We are not always called with irqs disabled - do that here,* and also avoid lockdep recursion:

Proto:void lock_acquire(struct lockdep_map *lock, unsigned int subclass, int trylock, int read, int check, struct lockdep_map *nest_lock, unsigned long ip)

Type:void

Parameter:

TypeParameterName
struct lockdep_map *lock
unsigned intsubclass
inttrylock
intread
intcheck
struct lockdep_map *nest_lock
unsigned longip
4476  If Value for the false possibility is greater at compile time(lockdep_recursion) Then Return
4479  raw_local_irq_save(flags)
4480  Check whether we follow the irq-flags state precisely:
4482  lockdep_recursion = 1
4483  trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip)
4484  This gets called for every mutex_lock*()/spin_lock*() operation
4486  lockdep_recursion = 0
4487  raw_local_irq_restore(flags)