Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sets a lease on an open file

Proto:int fcntl_setlease(unsigned int fd, struct file *filp, long arg)

Type:int

Parameter:

TypeParameterName
unsigned intfd
struct file *filp
longarg
2119  If arg == F_UNLCK Then Return vfs_setlease - sets a lease on an open file*@filp: file pointer*@arg: type of lease to obtain*@lease: file_lock to use when adding a lease*@priv: private info for lm_setup when adding a lease (may be* NULL if lm_setup doesn't require it)
2121  Return do_fcntl_add_lease(fd, filp, arg)