函数逻辑报告

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

函数名称:Initialize a lease, use the default lock manager operations

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

返回类型:int

参数:

类型参数名称
struct file *filp
longtype
struct file_lock *fl
617  如果assign_type(fl, type)不等于0则返回:负EINVAL
620  fl_owner等于filp
621  fl_pid等于tgid
623  fl_file等于filp
624  fl_flags等于lease held on this file
625  fl_start等于0
626  fl_end等于OFFSET_MAX
627  Callbacks for filesystems = NULL
628  Callbacks for lockmanagers 等于lease_manager_ops
629  返回:0
调用者
名称描述
lease_allocAllocate a file_lock initialised to this type of lease