函数逻辑报告

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

函数名称:This function is called on the last close of an open file.

函数原型:void locks_remove_file(struct file *filp)

返回类型:void

参数:

类型参数名称
struct file *filp
2749  ctx等于smp_load_acquire( & i_flctx)
2750  如果非ctx则返回
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  加自旋锁
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  自旋锁解锁