Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_lock_file - file byte range lock*@filp: The file to apply the lock to*@cmd: type of locking operation (F_SETLK, F_GETLK, etc

Proto:int vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf)

Type:int

Parameter:

TypeParameterName
struct file *filp
unsigned intcmd
struct file_lock *fl
struct file_lock *conf
2396  If lock Then Return lock(filp, cmd, fl)
2398  Else Return Apply a POSIX-style lock to a file
Caller
NameDescribe
do_lock_file_wait
locks_remove_posixThis function is called when the file is being removed* from the task's fd array. POSIX locks belonging to this task* are deleted at this time.