Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The i_flctx must be valid when calling into here

Proto:static void locks_remove_flock(struct file *filp, struct file_lock_context *flctx)

Type:void

Parameter:

TypeParameterName
struct file *filp
struct file_lock_context *flctx
2704  inode = locks_inode(filp)
2706  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
2709  Fill in a file_lock structure with an appropriate FLOCK lock.
2710  fl_flags |= unlock on close
2712  If flock Then flock(filp, F_SETLKW, & fl)
2714  Else Try to create a FLOCK lock on filp
2717  If Callbacks for filesystems && fl_release_private Then fl_release_private( & fl)
Caller
NameDescribe
locks_remove_fileThis function is called on the last close of an open file.