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:assign_type

Proto:static int assign_type(struct file_lock *fl, long type)

Type:int

Parameter:

TypeParameterName
struct file_lock *fl
longtype
507  Case type == F_RDLCK
508  Case type == F_WRLCK
509  Case type == F_UNLCK
510  fl_type = type
511  Break
512  Default
513  Return -EINVAL
515  Return 0
Caller
NameDescribe
flock64_to_posix_lock
lease_initInitialize a lease, use the default lock manager operations
lease_modifyWe already had a lease on this file; just change its type