函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_wq_submit_work

函数原型:static void io_wq_submit_work(struct io_wq_work **workptr)

返回类型:void

参数:

类型参数名称
struct io_wq_work **workptr
3326  work等于workptr
3327  req等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structio_kiocb, work)
3328  struct io_kiocb * nxt = NULL
3329  ret等于0
3331  如果flags按位与IO_WQ_WORK_CANCELret等于负ECANCELED
3334  如果非ret
3335  has_user等于flags按位与IO_WQ_WORK_HAS_MM的值不等于0
3336  in_async = true
3337  循环
3338  ret等于io_issue_sqe(req, NULL, & nxt, false)
3344  如果ret不等于负EAGAIN退出
3346  cond_resched()
3347  当1循环
3351  io_put_req(req)
3353  如果ret
3354  req_set_fail_links(req)
3355  io_cqring_add_event(req, ret)
3356  io_put_req(req)
3360  如果非retnxtio_wq_assign_next(workptr, nxt)