public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] introduce io_uring querying
@ 2025-08-28  9:39 Pavel Begunkov
  2025-08-28  9:39 ` [PATCH v2 1/3] io_uring: add helper for *REGISTER_SEND_MSG_RING Pavel Begunkov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pavel Begunkov @ 2025-08-28  9:39 UTC (permalink / raw)
  To: io-uring; +Cc: asml.silence, Gabriel Krisman Bertazi

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

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 | 44 ++++++++++++++
 io_uring/Makefile                   |  2 +-
 io_uring/io_uring.c                 | 31 +---------
 io_uring/io_uring.h                 | 56 +++++++++++++++++
 io_uring/query.c                    | 93 +++++++++++++++++++++++++++++
 io_uring/query.h                    |  9 +++
 io_uring/register.c                 | 39 +++++++-----
 8 files changed, 234 insertions(+), 43 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-31  0:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28  9:39 [PATCH v2 0/3] introduce io_uring querying Pavel Begunkov
2025-08-28  9:39 ` [PATCH v2 1/3] io_uring: add helper for *REGISTER_SEND_MSG_RING Pavel Begunkov
2025-08-28  9:39 ` [PATCH v2 2/3] io_uring: add macros for avaliable flags Pavel Begunkov
2025-08-28  9:39 ` [PATCH v2 3/3] io_uring: introduce io_uring querying Pavel Begunkov
2025-08-31  0:49 ` [PATCH v2 0/3] " Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox