函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-29 10:59:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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)

函数原型:int vfs_setlease(struct file *filp, long arg, struct file_lock **lease, void **priv)

返回类型:int

参数:

类型参数名称
struct file *filp
longarg
struct file_lock **lease
void **priv
2073  如果leasesetlease_notifier(arg, * lease)
2075  如果setlease则返回:setlease(filp, arg, lease, priv)
2077  否则返回: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)
调用者
名称描述
do_fcntl_add_lease
fcntl_setlease设置打开文件租约