Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_downgrade

Proto:void lock_downgrade(struct lockdep_map *lock, unsigned long ip)

Type:void

Parameter:

TypeParameterName
struct lockdep_map *lock
unsigned longip
4453  If Value for the false possibility is greater at compile time(lockdep_recursion) Then Return
4456  raw_local_irq_save(flags)
4457  lockdep_recursion = 1
4458  Check whether we follow the irq-flags state precisely:
4459  If __lock_downgrade(lock, ip) Then We are building curr_chain_key incrementally, so double-check* it from scratch, to make sure that it's done correctly:
4461  lockdep_recursion = 0
4462  raw_local_irq_restore(flags)
Caller
NameDescribe
downgrade_writedowngrade write lock to read lock