Skip to content

Make io_uring_enter more ergonomic.#1345

Merged
sunfishcode merged 3 commits intomainfrom
sunfishcode/io-uring-enter
Feb 22, 2025
Merged

Make io_uring_enter more ergonomic.#1345
sunfishcode merged 3 commits intomainfrom
sunfishcode/io-uring-enter

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

Define a Sigset type which fully encapsulates the linux_raw_sys type, and change io_uring_enter's arg/size arguments to a &T argument where T must either be Sigset or io_uring_getevents_arg (with IoringEnterFlags::EXT_ARG set accordingly).

Supporting this, also define a KernelSigSet type, and define our own versions of KernelSigaction and friends.

Define a `Sigset` type which fully encapsulates the `linux_raw_sys`
type, and change `io_uring_enter`'s `arg`/`size` arguments to a `&T`
argument where `T` must either be `Sigset` or `io_uring_getevents_arg`
(with `IoringEnterFlags::EXT_ARG` set accordingly).

Supporting this, also define a `KernelSigSet` type, and define our
own versions of `KernelSigaction` and friends.
@sunfishcode sunfishcode merged commit 28036de into main Feb 22, 2025
@sunfishcode sunfishcode deleted the sunfishcode/io-uring-enter branch February 22, 2025 16:56
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