函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_delete_lock - stop waiting for a file lock*@waiter: the lock which was waiting* lockd/nfsd need to disconnect the lock while working on it.

函数原型:int locks_delete_block(struct file_lock *waiter)

返回类型:int

参数:

类型参数名称
struct file_lock *waiter
754  status等于负ENOENT
767  如果 The lock, that is blocking us 恒等于NULL链表为空则返回:status
770  加自旋锁
771  如果 The lock, that is blocking us status等于0
773  __locks_wake_up_blocks(waiter)
774  Remove waiter from blocker's block list.* When blocker ends up pointing to itself then the list is empty.* Must be called with blocked_lock_lock held.
775  自旋锁解锁
776  返回:status
调用者
名称描述
posix_lock_inode_waitposix_lock_inode_wait - Apply a POSIX-style lock to a file*@inode: inode of file to which lock request should be applied*@fl: The lock to be applied* Apply a POSIX style lock request to an inode.
__break_lease撤销所有未偿还的文件
flock_lock_inode_waitlock_lock_inode_wait - Apply a FLOCK-style lock to a file*@inode: inode of the file to apply to*@fl: The lock to be applied* Apply a FLOCK style lock request to an inode.
do_lock_file_wait