函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_dispose_list

函数原型:static void locks_dispose_list(struct list_head *dispose)

返回类型:void

参数:

类型参数名称
struct list_head *dispose
392  当非链表为空循环
393  fl等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(dispose, structfile_lock, fl_list)
394  删除链表项并重新初始化
395  Free a lock which is not in use.
调用者
名称描述
flock_lock_inodeTry to create a FLOCK lock on filp
posix_lock_inode
__break_lease撤销所有未偿还的文件
fcntl_getlease获取当前文件租约
generic_add_lease
generic_delete_lease
locks_remove_leaseThe i_flctx must be valid when calling into here