函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_lock_to_flock

函数原型:static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl)

返回类型:int

参数:

类型参数名称
struct flock *flock
struct file_lock *fl
2286  l_pid等于locks_translate_pid - translate a file_lock's fl_pid number into a namespace*@fl: The file_lock who's fl_pid should be translated*@ns: The namespace into which the pid should be translated* Used to tranlate a fl_pid into a namespace virtual pid number
2292  如果fl_start大于OFFT_OFFSET_MAX则返回:负EOVERFLOW
2294  如果fl_end不等于OFFSET_MAXfl_end大于OFFT_OFFSET_MAX则返回:负EOVERFLOW
2297  l_start等于fl_start
2298  l_len等于如果fl_end恒等于OFFSET_MAX则0否则fl_endfl_start加1
2300  l_whence等于0
2301  l_type等于fl_type
2302  返回:0
调用者
名称描述
fcntl_getlkReport the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().