mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
io_uring: add mshot helper for posting CQE32
Add a helper for posting 32 byte CQEs in a multishot mode and add a cmd helper on top. As it specifically works with requests, the helper ignore the passed in cqe->user_data and sets it to the one stored in the request. The command helper is only valid with multishot requests. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/c29d7720c16e1f981cfaa903df187138baa3946b.1750065793.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
b955754959
commit
ac479eac22
@@ -17,6 +17,10 @@ void io_uring_cmd_cleanup(struct io_kiocb *req);
|
||||
bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
|
||||
struct io_uring_task *tctx, bool cancel_all);
|
||||
|
||||
bool io_uring_cmd_post_mshot_cqe32(struct io_uring_cmd *cmd,
|
||||
unsigned int issue_flags,
|
||||
struct io_uring_cqe cqe[2]);
|
||||
|
||||
void io_cmd_cache_free(const void *entry);
|
||||
|
||||
int io_cmd_poll_multishot(struct io_uring_cmd *cmd,
|
||||
|
||||
Reference in New Issue
Block a user