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, void ** priv);
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
22 priv
23 private data for lm_setup
24
26 The (input) flp->fl_lmops->lm_break function is required by
27 break_lease.
28
29 Called with inode->i_lock held.
30
32Kernel Hackers Manual 3.10 June 2019 GENERIC_SETLEASE(9)