Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locks_lock_inode_wait - Apply a lock to an inode*@inode: inode of the file to apply to*@fl: The lock to be applied* Apply a POSIX or FLOCK style lock request to an inode.

Proto:int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file_lock *fl
2156  res = 0
2158  Case & == FL_POSIX
2159  res = posix_lock_inode_wait - Apply a POSIX-style lock to a file*@inode: inode of file to which lock request should be applied*@fl: The lock to be applied* Apply a POSIX style lock request to an inode.
2160  Break
2161  Case & == FL_FLOCK
2162  res = lock_lock_inode_wait - Apply a FLOCK-style lock to a file*@inode: inode of the file to apply to*@fl: The lock to be applied* Apply a FLOCK style lock request to an inode.
2163  Break
2164  Default
2165  BUG()
2167  Return res