Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This function is called on the last close of an open file.

Proto:void locks_remove_file(struct file *filp)

Type:void

Parameter:

TypeParameterName
struct file *filp
2749  ctx = smp_load_acquire( & i_flctx)
2750  If Not ctx Then Return
2754  This function is called when the file is being removed* from the task's fd array. POSIX locks belonging to this task* are deleted at this time.
2757  The i_flctx must be valid when calling into here
2760  The i_flctx must be valid when calling into here
2762  spin_lock( & flc_lock)
2763  locks_check_ctx_file_list(filp, & flc_posix, "POSIX")
2764  locks_check_ctx_file_list(filp, & flc_flock, "FLOCK")
2765  locks_check_ctx_file_list(filp, & flc_lease, "LEASE")
2766  spin_unlock( & flc_lock)