1VFS_SETLEASE(9) The Linux VFS VFS_SETLEASE(9)
2
3
4
6 vfs_setlease - sets a lease on an open file
7
9 int vfs_setlease(struct file * filp, long arg,
10 struct file_lock ** lease, void ** priv);
11
13 filp
14 file pointer
15
16 arg
17 type of lease to obtain
18
19 lease
20 file_lock to use when adding a lease
21
22 priv
23 private info for lm_setup when adding a lease
24
26 Call this to establish a lease on the file. The “lease” argument is not
27 used for F_UNLCK requests and may be NULL. For commands that set or
28 alter an existing lease, the (*lease)->fl_lmops->lm_break operation
29 must be set; if not, this function will return -ENOLCK (and generate a
30 scary-looking stack trace).
31
33Kernel Hackers Manual 3.10 June 2019 VFS_SETLEASE(9)