函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep.c Create Date:2022-07-27 10:50:35
Last Modify:2020-03-17 14:16:01 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lock_is_held_type

函数原型:int lock_is_held_type(const struct lockdep_map *lock, int read)

返回类型:int

参数:

类型参数名称
const struct lockdep_map *lock
intread
4512  ret等于0
4514  如果此条件成立可能性小(为编译器优化)(lockdep_recursion)则返回:1
4517  raw_local_irq_save(flags)
4518  Check whether we follow the irq-flags state precisely:
4520  lockdep_recursion等于1
4521  ret等于__lock_is_held(lock, read)
4522  lockdep_recursion等于0
4523  raw_local_irq_restore(flags)
4525  返回:ret