Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Determine if lock sys_fl blocks lock caller_fl. FLOCK specific* checking before calling the locks_conflict().

Proto:static bool flock_locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl)

Type:bool

Parameter:

TypeParameterName
struct file_lock *caller_fl
struct file_lock *sys_fl
920  If fl_file == fl_file Then Return false
922  If fl_type & LOCK_MAND || fl_type & LOCK_MAND Then Return false
925  Return Determine if lock sys_fl blocks lock caller_fl. Common functionality* checks for shared/exclusive status of overlapping locks.
Caller
NameDescribe
flock_lock_inodeTry to create a FLOCK lock on filp