函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_copy_lock

函数原型:void locks_copy_lock(struct file_lock *new, struct file_lock *fl)

返回类型:void

参数:

类型参数名称
struct file_lock *new
struct file_lock *fl
431  WARN_ON_ONCE( Callbacks for filesystems )
433  Initialize a new lock from an existing file_lock structure.
435  fl_file等于fl_file
436  Callbacks for filesystems 等于 Callbacks for filesystems
438  如果 Callbacks for filesystems
439  如果fl_copy_lockfl_copy_lock(new, fl)
调用者
名称描述
flock_lock_inodeTry to create a FLOCK lock on filp
posix_lock_inode