swift-system icon indicating copy to clipboard operation
swift-system copied to clipboard

[IO_URING] Add support for `pollAdd` operation

Open FranzBusch opened this issue 1 month ago • 3 comments

Motivation

To observe events on file descriptors IO_URING supports the pollAdd operation. This is useful when you want to observe a file descriptor becoming ready to read or write

Modifications

This PR adds a new IORing.Request.PollEvents option set to model the poll masks. Furthermore, it adds a new static func pollAdd to the IORing.Request.

Result

We can now use IO_URING to poll for events on file descriptors.

FranzBusch avatar Dec 08 '25 10:12 FranzBusch

@swift-ci please test

FranzBusch avatar Dec 08 '25 10:12 FranzBusch

@swift-ci please test

FranzBusch avatar Dec 08 '25 13:12 FranzBusch

@swift-ci please test

FranzBusch avatar Dec 09 '25 10:12 FranzBusch