函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocate a file_lock initialised to this type of lease

函数原型:static struct file_lock *lease_alloc(struct file *filp, long type)

返回类型:struct file_lock

参数:

类型参数名称
struct file *filp
longtype
635  fl等于Allocate an empty lock structure.
636  error等于负ENOMEM
638  如果(fl == NULL)则返回:错误号
641  error等于Initialize a lease, use the default lock manager operations
642  如果error
643  Free a lock which is not in use.
644  返回:错误号
646  返回:fl
调用者
名称描述
__break_lease撤销所有未偿还的文件
do_fcntl_add_lease