Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_release

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

Type:void

Parameter:

TypeParameterName
struct lockdep_map *lock
unsigned longip
4495  If Value for the false possibility is greater at compile time(lockdep_recursion) Then Return
4498  raw_local_irq_save(flags)
4499  Check whether we follow the irq-flags state precisely:
4500  lockdep_recursion = 1
4501  trace_lock_release(lock, ip)
4502  If Remove the lock from the list of currently held locks - this gets* called on mutex_unlock()/spin_unlock*() (or on a failed* mutex_lock_interruptible()). Then We are building curr_chain_key incrementally, so double-check* it from scratch, to make sure that it's done correctly:
4504  lockdep_recursion = 0
4505  raw_local_irq_restore(flags)