Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Initialize a lease, use the default lock manager operations

Proto:static int lease_init(struct file *filp, long type, struct file_lock *fl)

Type:int

Parameter:

TypeParameterName
struct file *filp
longtype
struct file_lock *fl
617  If assign_type(fl, type) != 0 Then Return -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  Return 0
Caller
NameDescribe
lease_allocAllocate a file_lock initialised to this type of lease