函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_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.

函数原型:int vfs_test_lock(struct file *filp, struct file_lock *fl)

返回类型:int

参数:

类型参数名称
struct file *filp
struct file_lock *fl
2246  如果lock则返回:lock(filp, F_GETLK, fl)
2248  posix_test_lock(filp, fl)
2249  返回:0
调用者
名称描述
fcntl_getlkReport the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().
fcntl_getlk64Report the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().