1FCNTL_GETLEASE(9) The Linux VFS FCNTL_GETLEASE(9)
2
3
4
6 fcntl_getlease - Enquire what lease is currently active
7
9 int fcntl_getlease(struct file * filp);
10
12 filp
13 the file
14
16 The value returned by this function will be one of (if no lease break
17 is pending):
18
19 F_RDLCK to indicate a shared lease is held.
20
21 F_WRLCK to indicate an exclusive lease is held.
22
23 F_UNLCK to indicate no lease is held.
24
25 (if a lease break is pending):
26
27 F_RDLCK to indicate an exclusive lease needs to be changed to a shared
28 lease (or removed).
29
30 F_UNLCK to indicate the lease needs to be removed.
31
33 sfr & willy disagree over whether F_INPROGRESS should be returned to
34 userspace.
35
37Kernel Hackers Manual 2.6. June 2019 FCNTL_GETLEASE(9)