Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io_uring_try_setup_flags: New function to probe kernel flag support #1292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tavianator
Copy link
Contributor

This new function is useful for flags like IORING_SETUP_SINGLE_ISSUER that are useful on kernels that support them, but not necessary on older kernels.


git request-pull output:

The following changes since commit 231d5c2bb11092b421c616ea88a8d2bd8c2b0792:

  Merge branch 'man-fixes' of https://github.com/wlukowicz/liburing (2024-12-01 14:46:47 -0700)

are available in the Git repository at:

  https://github.com/tavianator/liburing try-setup-flags

for you to fetch changes up to 375492c1ba1e084f841c0af49ad73e388ff3c1dd:

  io_uring_try_setup_flags: New function to probe kernel flag support (2024-12-04 14:47:40 -0500)

----------------------------------------------------------------
Tavian Barnes (1):
      io_uring_try_setup_flags: New function to probe kernel flag support

 man/io_uring_try_setup_flags.3 | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 src/include/liburing.h         |  2 ++
 src/liburing.map               |  1 +
 src/setup.c                    | 17 +++++++++++++++++
 test/Makefile                  |  1 +
 test/try-setup-flags.c         | 33 +++++++++++++++++++++++++++++++++
 6 files changed, 101 insertions(+)
 create mode 100644 man/io_uring_try_setup_flags.3
 create mode 100644 test/try-setup-flags.c

By submitting this pull request, I acknowledge that:

  1. I have followed the above pull request guidelines.
  2. I have the rights to submit this work under the same license.
  3. I agree to a Developer Certificate of Origin (see https://developercertificate.org for more information).

This new function is useful for flags like IORING_SETUP_SINGLE_ISSUER
that are useful on kernels that support them, but not necessary on older
kernels.

Signed-off-by: Tavian Barnes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant