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:Check if two locks overlap each other.

Proto:static inline int locks_overlap(struct file_lock *fl1, struct file_lock *fl2)

Type:int

Parameter:

TypeParameterName
struct file_lock *fl1
struct file_lock *fl2
653  Return fl_end >= fl_start && fl_end >= fl_start
Caller
NameDescribe
posix_locks_conflictDetermine if lock sys_fl blocks lock caller_fl. POSIX specific* checking before calling the locks_conflict().