Function report |
Source Code:fs\file.c |
Create Date:2022-07-28 20:08:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The same warnings as for __alloc_fd()/__fd_install() apply here...
Proto:int __close_fd(struct files_struct *files, unsigned fd)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct files_struct * | files | |
unsigned | fd |
627 | fdt = files_fdtable(files) |
628 | If fd >= max_fds Then Go to out_unlock |
630 | file = current fd array [fd] |
631 | If Not file Then Go to out_unlock |
634 | __put_unused_fd(files, fd) |
638 | out_unlock : |
640 | Return -EBADF |
Name | Describe |
---|---|
replace_fd | |
ksys_close | In contrast to sys_close(), this stub does not check whether the syscall* should or should not be restarted, but returns the raw error codes from* __close_fd(). |
SYSCALL_DEFINE1 | Careful here! We test whether the file pointer is NULL before* releasing the fd. This ensures that one clone task can't release* an fd while another clone is opening it. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |