Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_req_defer

Proto:static int io_req_defer(struct io_kiocb *req, const struct io_uring_sqe *sqe)

Type:int

Parameter:

TypeParameterName
struct io_kiocb *req
const struct io_uring_sqe *sqe
3155  ctx = ctx
3159  If Not req_need_defer(req) && list_empty - tests whether a list is empty*@head: the list to test. Then Return 0
3162  If Not io && io_alloc_async_ctx(req) Then Return -EAGAIN
3165  ret = io_req_defer_prep(req, sqe)
3166  If ret < 0 Then Return ret
3169  spin_lock_irq( & completion_lock)
3170  If Not req_need_defer(req) && list_empty - tests whether a list is empty*@head: the list to test. Then
3171  spin_unlock_irq( & completion_lock)
3172  Return 0
3175  _uring_defer - called when an io_uring request is deferred*@ctx: pointer to a ring context structure*@req: pointer to a deferred request*@user_data: user data associated with the request* Allows to track deferred requests, to get an insight about what
3176  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.
3177  spin_unlock_irq( & completion_lock)
3178  Return -cb queued, will get completion event
Caller
NameDescribe
io_queue_sqe