Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:posix_lock_to_flock64

Proto:static void posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl)

Type:void

Parameter:

TypeParameterName
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 = If fl_end == OFFSET_MAX Then 0 Else fl_end - fl_start + 1
2312  l_whence = 0
2313  l_type = fl_type
Caller
NameDescribe
fcntl_getlk64Report the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().