函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__lock_unpin_lock

函数原型:static void __lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie cookie)

返回类型:void

参数:

类型参数名称
struct lockdep_map *lock
struct pin_cookiecookie
4366  curr等于当前进程
4369  如果此条件成立可能性小(为编译器优化)(!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)则返回
4372 i小于lockdep_depth循环
4373  hlock等于held_locksi
4375  如果match_held_lock(hlock, lock)则
4376  如果WARN(!pin_count, "unpinning an unpinned lock\n")则返回
4379  pin_count减等于val
4381  如果WARN((int)pin_count < 0, "pin count corrupted\n")则pin_count等于0
4384  返回
4388  WARN(1, "unpinning an unheld lock\n")
调用者
名称描述
lock_unpin_lock