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: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.

Proto:SYSCALL_DEFINE1(close, unsigned int, fd)

Type:

Parameter:Nothing

1193  retval = The same warnings as for __alloc_fd()/__fd_install() apply here...
1196  If Value for the false possibility is greater at compile time(retval == - These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see. || retval == - ERESTARTNOINTR || retval == - start if no handler.. || retval == - start by calling sys_restart_syscall ) Then retval = -EINTR
1202  Return retval