函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-29 10:54:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__io_accept

函数原型:static int __io_accept(struct io_kiocb *req, struct io_kiocb **nxt, bool force_nonblock)

返回类型:int

参数:

类型参数名称
struct io_kiocb *req
struct io_kiocb **nxt
boolforce_nonblock
2378  accept等于accept
2382  file_flags等于如果force_nonblockO_NONBLOCK否则0
2383  ret等于__sys_accept4_file(file, file_flags, addr, addr_len, flags)
2385  如果ret恒等于负EAGAINforce_nonblock则返回:负EAGAIN
2387  如果ret恒等于负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.ret等于负EINTR
2389  如果ret小于0则req_set_fail_links(req)
2391  io_cqring_add_event(req, ret)
2392  Drop reference to request, return next in chain (if there is one) if this* was the last reference to this request.
2393  返回:0
调用者
名称描述
io_accept_finish
io_accept