函数逻辑报告

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_flock(struct file *filp, struct file_lock_context *flctx)

返回类型:void

参数:

类型参数名称
struct file *filp
struct file_lock_context *flctx
2704  inode等于locks_inode(filp)
2706  如果链表为空则返回
2709  Fill in a file_lock structure with an appropriate FLOCK lock.
2710  fl_flags或等于unlock on close
2712  如果flockflock(filp, F_SETLKW, & fl)
2714  否则Try to create a FLOCK lock on filp
2717  如果 Callbacks for filesystems fl_release_privatefl_release_private( & fl)
调用者
名称描述
locks_remove_fileThis function is called on the last close of an open file.