函数逻辑报告

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

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

返回类型:bool

参数:

类型参数名称
struct file_lock *caller_fl
struct file_lock *sys_fl
920  如果fl_file恒等于fl_file则返回:false
922  如果fl_type按位与LOCK_MANDfl_type按位与LOCK_MAND则返回:false
925  返回:Determine if lock sys_fl blocks lock caller_fl. Common functionality* checks for shared/exclusive status of overlapping locks.
调用者
名称描述
flock_lock_inodeTry to create a FLOCK lock on filp