函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_lock_to_flock64

函数原型:static void posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl)

返回类型:void

参数:

类型参数名称
struct flock64 *flock
struct file_lock *fl
2308  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
2309  l_start等于fl_start
2310  l_len等于如果fl_end恒等于OFFSET_MAX则0否则fl_endfl_start加1
2312  l_whence等于0
2313  l_type等于fl_type
调用者
名称描述
fcntl_getlk64Report the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().