table of contents
VFS_SETLEASE(9) | The Linux VFS | VFS_SETLEASE(9) |
NAME¶
vfs_setlease - sets a lease on an open file
SYNOPSIS¶
int vfs_setlease(struct file * filp, long arg, struct file_lock ** lease, void ** priv);
ARGUMENTS¶
struct file * filp
long arg
struct file_lock ** lease
void ** priv
DESCRIPTION¶
Call this to establish a lease on the file. The “lease” argument is not used for F_UNLCK requests and may be NULL. For commands that set or alter an existing lease, the (*lease)->fl_lmops->lm_break operation must be set; if not, this function will return -ENOLCK (and generate a scary-looking stack trace).
The “priv” pointer is passed directly to the lm_setup function as-is. It may be NULL if the lm_setup operation doesn't require it.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |