All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: io-uring@vger.kernel.org
Cc: asml.silence@gmail.com
Subject: [PATCH v3 0/3] introduce io_uring querying
Date: Mon,  8 Sep 2025 00:02:57 +0100	[thread overview]
Message-ID: <cover.1757286089.git.asml.silence@gmail.com> (raw)

Introduce a versatile interface to query auxilary io_uring parameters.
It will be used to close a couple of API gaps, but in this series can
only tell what request and register opcodes, features and setup flags
are available. It'll replace IORING_REGISTER_PROBE  but with a much
more convenient interface. Patch 3 for API description.

Can be tested with:

https://github.com/isilence/liburing.git io_uring/query-v2

v3: - Rebase
    - Add review tags
    - Remove copyright notice
v2: - Add enter and sqe flags to IO_URING_QUERY_OPCODES
    - Zero unused parts of user structures (beyond returned hdr.size).
    - Don't colocate hdr and and query specific info. The header now points
      to it via query_data.

Pavel Begunkov (3):
  io_uring: add helper for *REGISTER_SEND_MSG_RING
  io_uring: add macros for avaliable flags
  io_uring: introduce io_uring querying

 include/uapi/linux/io_uring.h       |  3 +
 include/uapi/linux/io_uring/query.h | 41 +++++++++++++
 io_uring/Makefile                   |  2 +-
 io_uring/io_uring.c                 | 32 +---------
 io_uring/io_uring.h                 | 57 ++++++++++++++++++
 io_uring/query.c                    | 93 +++++++++++++++++++++++++++++
 io_uring/query.h                    |  9 +++
 io_uring/register.c                 | 39 +++++++-----
 8 files changed, 232 insertions(+), 44 deletions(-)
 create mode 100644 include/uapi/linux/io_uring/query.h
 create mode 100644 io_uring/query.c
 create mode 100644 io_uring/query.h

-- 
2.49.0


             reply	other threads:[~2025-09-07 23:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-07 23:02 Pavel Begunkov [this message]
2025-09-07 23:02 ` [PATCH v3 1/3] io_uring: add helper for *REGISTER_SEND_MSG_RING Pavel Begunkov
2025-09-07 23:02 ` [PATCH v3 2/3] io_uring: add macros for avaliable flags Pavel Begunkov
2025-09-07 23:03 ` [PATCH v3 3/3] io_uring: introduce io_uring querying Pavel Begunkov
2025-09-08  4:52 ` [PATCH v3 0/3] " Martin K. Petersen
2025-09-08 12:22   ` Pavel Begunkov
2025-09-08 14:07 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1757286089.git.asml.silence@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=io-uring@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.