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:Allocate a file_lock initialised to this type of lease

Proto:static struct file_lock *lease_alloc(struct file *filp, long type)

Type:struct file_lock

Parameter:

TypeParameterName
struct file *filp
longtype
635  fl = Allocate an empty lock structure.
636  error = -ENOMEM
638  If (fl == NULL) Then Return ERR_PTR(error)
641  error = Initialize a lease, use the default lock manager operations
642  If error Then
643  Free a lock which is not in use.
644  Return ERR_PTR(error)
646  Return fl
Caller
NameDescribe
__break_leaserevoke all outstanding leases on file
do_fcntl_add_lease