函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Verify a "struct flock" and copy it to a "struct file_lock" as a POSIX* style lock.

函数原型:static int flock_to_posix_lock(struct file *filp, struct file_lock *fl, struct flock *l)

返回类型:int

参数:

类型参数名称
struct file *filp
struct file_lock *fl
struct flock *l
571  struct ll = {l_type = l_type, l_whence = l_whence, l_start = l_start, l_len = l_len, }
578  返回:flock64_to_posix_lock(filp, fl, & ll)
调用者
名称描述
fcntl_getlkReport the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().
fcntl_setlkApply the lock described by l to an open file descriptor.* This implements both the F_SETLK and F_SETLKW commands of fcntl().