Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:01:00
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:"id" is the POSIX thread ID. We use the* files pointer for this..

Proto:int filp_close(struct file *filp, fl_owner_t id)

Type:int

Parameter:

TypeParameterName
struct file *filp
fl_owner_tid
1166  retval = 0
1168  If Not file_count(filp) Then
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  Return 0
1173  If flush Then retval = flush(filp, id)
1176  If Value is more likely to compile time(!(f_mode & File is opened with O_PATH; almost nothing can be done with it )) Then
1177  dnotify_flush(filp, id)
1178  locks_remove_posix(filp, id)
1180  fput(filp)
1181  Return retval
Caller
NameDescribe
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