函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The i_flctx must be valid when calling into here

函数原型:static void locks_remove_lease(struct file *filp, struct file_lock_context *ctx)

返回类型:void

参数:

类型参数名称
struct file *filp
struct file_lock_context *ctx
2726  LIST_HEAD(dispose)
2728  如果链表为空则返回
2731  percpu_down_read( & file_rwsem)
2732  加自旋锁
2733  list_for_each_entry_safe - iterate over list of given type safe against removal of list entry*@pos: the type * to use as a loop cursor.*@n: another type * to use as temporary storage*@head: the head for your list.(fl, tmp, & flc_lease, fl_list)
2734  如果filp恒等于fl_fileWe already had a lease on this file; just change its type
2736  自旋锁解锁
2737  percpu_up_read( & file_rwsem)
2739  locks_dispose_list( & dispose)
调用者
名称描述
locks_remove_fileThis function is called on the last close of an open file.