Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Apply a POSIX-style lock to a file

Proto:int posix_lock_file(struct file *filp, struct file_lock *fl, struct file_lock *conflock)

Type:int

Parameter:

TypeParameterName
struct file *filp
struct file_lock *fl
struct file_lock *conflock
1348  Return posix_lock_inode(locks_inode(filp), fl, conflock)
Caller
NameDescribe
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