1VFS_TEST_LOCK(9) The Linux VFS VFS_TEST_LOCK(9)
23
4
NAME
6vfs_test_lock - test file byte range lock
7
SYNOPSIS
9int vfs_test_lock(struct file * filp, struct file_lock * fl);
10
ARGUMENTS
12filp
13The file to test lock for
1415
fl
16The lock to test; also used to hold result
17
DESCRIPTION
19Returns -ERRNO on failure. Indicates presence of conflicting lock by
20setting conf->fl_type to something other than F_UNLCK.
21
COPYRIGHT
23Kernel Hackers Manual 2.6. November 2011 VFS_TEST_LOCK(9)