函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_req_defer

函数原型:static int io_req_defer(struct io_kiocb *req, const struct io_uring_sqe *sqe)

返回类型:int

参数:

类型参数名称
struct io_kiocb *req
const struct io_uring_sqe *sqe
3155  ctx等于ctx
3159  如果非req_need_defer(req)且链表为空则返回:0
3162  如果非ioio_alloc_async_ctx(req)则返回:负EAGAIN
3165  ret等于io_req_defer_prep(req, sqe)
3166  如果ret小于0则返回:ret
3169  spin_lock_irq( & completion_lock)
3170  如果非req_need_defer(req)且链表为空
3171  spin_unlock_irq( & completion_lock)
3172  返回: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  添加链表项
3177  spin_unlock_irq( & completion_lock)
3178  返回:负cb queued, will get completion event
调用者
名称描述
io_queue_sqe