函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-29 10:59:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file_lock *fl
2156  res等于0
2158  : & == 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  退出
2161  : & == 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  退出
2164  默认
2165  BUG()
2167  返回:res