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: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)

Proto:int vfs_setlease(struct file *filp, long arg, struct file_lock **lease, void **priv)

Type:int

Parameter:

TypeParameterName
struct file *filp
longarg
struct file_lock **lease
void **priv
2073  If lease Then setlease_notifier(arg, * lease)
2075  If setlease Then Return setlease(filp, arg, lease, priv)
2077  Else Return generic_setlease - sets a lease on an open file*@filp: file pointer*@arg: type of lease to obtain*@flp: input - file_lock to use, output - file_lock inserted*@priv: private data for lm_setup (may be NULL if lm_setup* doesn't require it)* The (input)
Caller
NameDescribe
do_fcntl_add_lease
fcntl_setleasesets a lease on an open file