函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We already had a lease on this file; just change its type

函数原型:int lease_modify(struct file_lock *fl, int arg, struct list_head *dispose)

返回类型:int

参数:

类型参数名称
struct file_lock *fl
intarg
struct list_head *dispose
1485  error等于assign_type(fl, arg)
1487  如果error则返回:error
1489  lease_clear_pending(fl, arg)
1490  Wake up processes blocked waiting for blocker.* Must be called with the inode->flc_lock held!
1491  如果arg恒等于F_UNLCK
1492  filp等于fl_file
1494  f_delown(filp)
1495  posix.1b rt signal to be delivered on IO 等于0
1496  async_helper() is used by almost all character device drivers* to set up the fasync queue, and for regular files by the file* lease code. It returns negative on error, 0 if it did no changes* and positive if it added/deleted the entry.
1497  如果( for lease break notifications != NULL)则
1501  locks_delete_lock_ctx(fl, dispose)
1503  返回:0
调用者
名称描述
time_out_leases
locks_remove_leaseThe i_flctx must be valid when calling into here