函数逻辑报告

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

函数名称:设置打开文件租约

函数原型:int fcntl_setlease(unsigned int fd, struct file *filp, long arg)

返回类型:int

参数:

类型参数名称
unsigned intfd
struct file *filp
longarg
2119  如果arg恒等于F_UNLCK则返回: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  返回:do_fcntl_add_lease(fd, filp, arg)