Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_cqring_fill_event

Proto:static void io_cqring_fill_event(struct io_kiocb *req, long res)

Type:void

Parameter:

TypeParameterName
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  If Value is more likely to compile time(cqe) Then
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  Else if cq_overflow_flushed Then
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  Else
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  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
Caller
NameDescribe
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