函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__lock_pin_lock

函数原型:static struct pin_cookie __lock_pin_lock(struct lockdep_map *lock)

返回类型:struct pin_cookie

参数:

类型参数名称
struct lockdep_map *lock
4318  cookie等于NIL_COOKIE
4319  curr等于当前进程
4322  如果此条件成立可能性小(为编译器优化)(!We want to turn all lock-debugging facilities on/off at once,* via a global flag. The reason is that once a single bug has been* detected and reported, there might be cascade of followup bugs* that would just muddy the log. So we report the first one and)则返回:cookie
4325 i小于lockdep_depth循环
4326  hlock等于held_locksi
4328  如果match_held_lock(hlock, lock)则
4335  pin_count加等于val
4336  返回:cookie
4340  WARN(1, "pinning an unheld lock\n")
4341  返回:cookie
调用者
名称描述
lock_pin_lock