函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fs.h Create Date:2022-07-27 06:44:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:locks_lock_file_wait

函数原型:static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)

返回类型:int

参数:

类型参数名称
struct file *filp
struct file_lock *fl
1328  返回:locks_lock_inode_wait(locks_inode(filp), fl)
调用者
名称描述
SYSCALL_DEFINE2sys_flock: - flock() system call.*@fd: the file descriptor to lock.*@cmd: the type of lock to apply.* Apply a %FL_FLOCK style lock to an open file descriptor.* The @cmd can be one of:* - %LOCK_SH -- a shared lock.* - %LOCK_EX -- an exclusive lock.