1GENERIC_SETLEASE(9) The Linux VFS GENERIC_SETLEASE(9)
2
3
4
6 generic_setlease - sets a lease on an open file
7
9 int generic_setlease(struct file * filp, long arg,
10 struct file_lock ** flp);
11
13 filp
14 file pointer
15
16 arg
17 type of lease to obtain
18
19 flp
20 input - file_lock to use, output - file_lock inserted
21
23 The (input) flp->fl_lmops->fl_break function is required by
24 break_lease.
25
26 Called with kernel lock held.
27
29Kernel Hackers Manual 2.6. June 2019 GENERIC_SETLEASE(9)