函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_cqring_fill_event

函数原型:static void io_cqring_fill_event(struct io_kiocb *req, long res)

返回类型:void

参数:

类型参数名称
struct io_kiocb *req
longres
820  ctx等于ctx
823  _uring_complete - called when completing an SQE*@ctx: pointer to a ring context structure*@user_data: user data associated with the request*@res: result of the request
830  cqe等于io_get_cqring(ctx)
831  如果此条件成立可能性大(为编译器优化)(cqe)则
832  WRITE_ONCE(sqe->data submission passed back , user_data)
833  WRITE_ONCE(sult code for this event , res)
834  WRITE_ONCE(flags, 0)
835  否则如果cq_overflow_flushed
836  WRITE_ONCE(Number of completion events lost because the queue was full;* this should be avoided by the application by making sure* there are not more requests pending than there is space in* the completion queue.* Written by the kernel, shouldn't be modified by the, atomic_inc_return( & cached_cq_overflow))
838  否则
839  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
840  result等于res
841  添加链表项
调用者
名称描述
io_kill_timeout
io_cqring_add_event
io_link_cancel_timeout
io_fail_linksCalled if REQ_F_LINK is set, and we fail the head request
io_iopoll_completeFind and free completed poll iocbs
io_poll_complete
io_timeout_fn
io_timeout_cancel
io_timeout_removeRemove or update an existing timeout command
io_async_find_and_cancel