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. POSIX specific* checking before calling the locks_conflict().

Proto:static bool posix_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
901  If Check whether two locks have the same owner. Then Return false
905  If Not Check if two locks overlap each other. Then Return false
908  Return Determine if lock sys_fl blocks lock caller_fl. Common functionality* checks for shared/exclusive status of overlapping locks.
Caller
NameDescribe
posix_test_lock
posix_lock_inode