函数逻辑报告

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

函数名称:do_fcntl_add_lease

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

返回类型:int

参数:

类型参数名称
unsigned intfd
struct file *filp
longarg
2088  fl等于Allocate a file_lock initialised to this type of lease
2089  如果是错误则返回:错误
2092  new等于fasync_alloc()
2093  如果非new
2094  Free a lock which is not in use.
2095  返回:负ENOMEM
2097  fa_fd等于fd
2099  error等于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)
2100  如果flFree a lock which is not in use.
2102  如果newNOTE! This can be used only for unused fasync entries:* entries that actually got inserted on the fasync list* need to be released by rcu - see fasync_remove_entry.
2104  返回:error
调用者
名称描述
fcntl_setlease设置打开文件租约