函数逻辑报告

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

函数名称: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.

函数原型:SYSCALL_DEFINE1(close, unsigned int, fd)

返回类型:

参数:

1193  retval等于The same warnings as for __alloc_fd()/__fd_install() apply here...
1196  如果此条件成立可能性小(为编译器优化)(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 )则retval等于负EINTR
1202  返回:retval