函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-29 10:31:02
Last Modify:2020-03-18 10:16:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:"id" is the POSIX thread ID. We use the* files pointer for this..

函数原型:int filp_close(struct file *filp, fl_owner_t id)

返回类型:int

参数:

类型参数名称
struct file *filp
fl_owner_tid
1166  retval等于0
1168  如果非file_count(filp)则
1169  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
1170  返回:0
1173  如果flushretval等于flush(filp, id)
1176  如果此条件成立可能性大(为编译器优化)(!(f_mode & File is opened with O_PATH; almost nothing can be done with it ))则
1177  dnotify_flush(filp, id)
1178  locks_remove_posix(filp, id)
1180  fput(filp)
1181  返回:retval
调用者
名称描述
acct_on
SYSCALL_DEFINE1
SYSCALL_DEFINE2
close_files
__close_fdThe same warnings as for __alloc_fd()/__fd_install() apply here...
__close_fd_get_filevariant of __close_fd that gets a ref on the file for later fput
do_close_on_exec
do_dup2
bm_evict_inode
do_coredump