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_prep_async_work

Proto:static inline bool io_prep_async_work(struct io_kiocb *req, struct io_kiocb **link)

Type:bool

Parameter:

TypeParameterName
struct io_kiocb *req
struct io_kiocb **link
630  bool do_hashed = false
633  Case opcode == IORING_OP_WRITEV
634  Case opcode == IORING_OP_WRITE_FIXED
636  If flags & gular file Then do_hashed = true
639  Case opcode == IORING_OP_READV
640  Case opcode == IORING_OP_READ_FIXED
641  Case opcode == IORING_OP_SENDMSG
642  Case opcode == IORING_OP_RECVMSG
643  Case opcode == IORING_OP_ACCEPT
644  Case opcode == IORING_OP_POLL_ADD
645  Case opcode == IORING_OP_CONNECT
651  If Not (flags & gular file ) Then flags |= IO_WQ_WORK_UNBOUND
653  Break
655  If io_req_needs_user(req) Then flags |= IO_WQ_WORK_NEEDS_USER
658  link = io_prep_linked_timeout(req)
659  Return do_hashed
Caller
NameDescribe
io_queue_async_work
io_wq_assign_next