函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:文件加POSIX锁

函数原型:int posix_lock_file(struct file *filp, struct file_lock *fl, struct file_lock *conflock)

返回类型:int

参数:

类型参数名称
struct file *filp
struct file_lock *fl
struct file_lock *conflock
1348  返回:posix_lock_inode(locks_inode(filp), fl, conflock)
调用者
名称描述
vfs_lock_filevfs_lock_file - file byte range lock*@filp: The file to apply the lock to*@cmd: type of locking operation (F_SETLK, F_GETLK, etc