mbox series

[liburing,0/8] update reg-wait to use region API

Message ID cover.1731705935.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series update reg-wait to use region API | expand

Message

Pavel Begunkov Nov. 15, 2024, 9:33 p.m. UTC
Reflect changes of the kernel API for registered waits and fix up
tests. The only thing that changed for the user is how we register
the area, which is now more generic and called areas. It should
also be done now while the ring is in the disabled state,
see IORING_SETUP_R_DISABLED.

In the future we might want to improve the liburing API for
regions, i.e. adding a structure and a bunch of functions
setting up the region in different modes.

Pavel Begunkov (8):
  queue: break reg wait setup
  Update io_uring.h
  queue: add region helpers and fix up wait reg kernel api
  examples: convert reg-wait to new api
  tests: convert reg-wait to regions
  tests: add region testing
  tests: test arbitrary offset reg waits
  Remove leftovers of old reg-wait registration api

 examples/reg-wait.c             |  45 +++-
 src/include/liburing.h          |   7 +-
 src/include/liburing/io_uring.h |  27 ++-
 src/liburing-ffi.map            |   3 +-
 src/liburing.map                |   3 +-
 src/queue.c                     |   4 +-
 src/register.c                  |  13 +-
 src/setup.c                     |  29 ---
 test/reg-wait.c                 | 377 +++++++++++++++++++++-----------
 9 files changed, 332 insertions(+), 176 deletions(-)