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. Common functionality* checks for shared/exclusive status of overlapping locks.

Proto:static bool 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
885  If fl_type == F_WRLCK Then Return true
887  If fl_type == F_WRLCK Then Return true
889  Return false
Caller
NameDescribe
posix_locks_conflictDetermine if lock sys_fl blocks lock caller_fl. POSIX specific* checking before calling the locks_conflict().
flock_locks_conflictDetermine if lock sys_fl blocks lock caller_fl. FLOCK specific* checking before calling the locks_conflict().
leases_conflict