Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fs.h Create Date:2022-07-28 05:42:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:locks_lock_file_wait

Proto:static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)

Type:int

Parameter:

TypeParameterName
struct file *filp
struct file_lock *fl
1328  Return locks_lock_inode_wait(locks_inode(filp), fl)
Caller
NameDescribe
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.