函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-29 10:59:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Must be called with the blocked_lock_lock held!

函数原型:static int posix_locks_deadlock(struct file_lock *caller_fl, struct file_lock *block_fl)

返回类型:int

参数:

类型参数名称
struct file_lock *caller_fl
struct file_lock *block_fl
1009  i等于0
1011  lockdep_assert_held( & This lock protects the blocked_hash. Generally, if you're accessing it, you* want to be holding this lock.* In addition, it also protects the fl->fl_blocked_requests list, and the* fl->fl_blocker pointer for file_lock structures that are acting as lock)
1017  如果IS_OFDLCK(caller_fl)则返回:0
1020 block_fl等于Find a lock that the owner of the given block_fl is blocking on. 循环
1021  如果i自加大于Deadlock detection:* We attempt to detect deadlocks that are due purely to posix file* locks.* We assume that a task can be waiting for at most one lock at a time.* So for any acquired lock, the process holding that lock may be则返回:0
1023  如果Check whether two locks have the same owner.则返回:1
1026  返回:0
调用者
名称描述
posix_lock_inode