Skip to content

liburing: add helpers to enable/disable eventfd notifications

Stefano Garzarella io-uring lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- renamed io_uring_cq_eventfd_toggle()
- return EOPNOTSUPP only if we need to change the flag

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5Add CQ ring 'flags' fieldsrc/include/liburing.h src/include/liburing/io_uring.h src/setup.c+6 -10 replies
2/5man/io_uring_setup.2: add 'flags' field in the struct io_cqring_offsetsman/io_uring_setup.2+2 -10 replies
3/5Add helpers to set and get eventfd notification statussrc/include/liburing.h src/include/liburing/io_uring.h+40 -00 replies
4/5man/io_uring_register.2: add IORING_CQ_EVENTFD_DISABLED descriptionman/io_uring_register.2+8 -00 replies
5/5Add test/eventfd-disable.c test case.gitignore test/Makefile test/eventfd-disable.c+153 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH liburing v2 0/5] liburing: add helpers to enable/disable eventfd notifications

This series is based on top of a new IORING_CQ_EVENTFD_DISABLED flag available in the CQ ring flags.

I added io_uring_cq_eventfd_enabled() to get the status of eventfd notifications, and io_uring_cq_eventfd_toggle() to disable/enabled eventfd notifications.

I updated man pages and I added a eventfd-disable.c test case.

v1 -> v2:
- renamed io_uring_cq_eventfd_toggle()
- return EOPNOTSUPP only if we need to change the flag

Stefano Garzarella (5):
Add CQ ring 'flags' field
man/io_uring_setup.2: add 'flags' field in the struct
io_cqring_offsets
Add helpers to set and get eventfd notification status man/io_uring_register.2: add IORING_CQ_EVENTFD_DISABLED description Add test/eventfd-disable.c test case

 .gitignore                      |   1 +
 man/io_uring_register.2         |   8 ++
 man/io_uring_setup.2            |   3 +-
 src/include/liburing.h          |  34 ++++++++
 src/include/liburing/io_uring.h |  11 ++-
 src/setup.c                     |   2 +
 test/Makefile                   |   6 +-
 test/eventfd-disable.c          | 148 ++++++++++++++++++++++++++++++++
 8 files changed, 209 insertions(+), 4 deletions(-)
 create mode 100644 test/eventfd-disable.c
Signature · 1 line
2.25.4