函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__lock_is_held

函数原型:static inline __attribute__((__always_inline__)) int __lock_is_held(const struct lockdep_map *lock, int read)

返回类型:int

参数:

类型参数名称
const struct lockdep_map *lock
intread
4299  curr等于当前进程
4302 i小于lockdep_depth循环
4303  hlock等于held_locksi
4305  如果match_held_lock(hlock, lock)则
4306  如果read恒等于负1或read恒等于read则返回:1
4309  返回:0
4313  返回:0
调用者
名称描述
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation
lock_is_held_type