函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_test_lock

函数原型:void posix_test_lock(struct file *filp, struct file_lock *fl)

返回类型:void

参数:

类型参数名称
struct file *filp
struct file_lock *fl
933  inode等于locks_inode(filp)
935  ctx等于smp_load_acquire( & i_flctx)
936  如果非ctx链表为空且不修改
937  fl_type等于F_UNLCK
938  返回
941  加自旋锁
943  如果Determine if lock sys_fl blocks lock caller_fl. POSIX specific* checking before calling the locks_conflict().
944  Initialize a new lock from an existing file_lock structure.
945  转到:out
948  fl_type等于F_UNLCK
949  out :
950  自旋锁解锁
951  返回
调用者
名称描述
vfs_test_lockvfs_test_lock - test file byte range lock*@filp: The file to test lock for*@fl: The lock to test; also used to hold result* Returns -ERRNO on failure. Indicates presence of conflicting lock by* setting conf->fl_type to something other than F_UNLCK.