函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-29 10:59:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Determine if lock sys_fl blocks lock caller_fl. Common functionality* checks for shared/exclusive status of overlapping locks.

函数原型:static bool locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl)

返回类型:bool

参数:

类型参数名称
struct file_lock *caller_fl
struct file_lock *sys_fl
885  如果fl_type恒等于F_WRLCK则返回:true
887  如果fl_type恒等于F_WRLCK则返回:true
889  返回:false
调用者
名称描述
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