Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int vfs_test_lock(struct file *filp, struct file_lock *fl)

Type:int

Parameter:

TypeParameterName
struct file *filp
struct file_lock *fl
2246  If lock Then Return lock(filp, F_GETLK, fl)
2248  posix_test_lock(filp, fl)
2249  Return 0
Caller
NameDescribe
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().