函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:assign_type

函数原型:static int assign_type(struct file_lock *fl, long type)

返回类型:int

参数:

类型参数名称
struct file_lock *fl
longtype
507  :type恒等于F_RDLCK
508  :type恒等于F_WRLCK
509  :type恒等于F_UNLCK
510  fl_type等于type
511  退出
512  默认
513  返回:负EINVAL
515  返回:0
调用者
名称描述
flock64_to_posix_lock
lease_initInitialize a lease, use the default lock manager operations
lease_modifyWe already had a lease on this file; just change its type