axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.79k stars 399 forks source link

Behavior of io_uring_wait_cqes is not documented for null `ts` #1209

Open travisdowns opened 3 weeks ago

travisdowns commented 3 weeks ago

It does not seem to be documented what the behavior of io_uring_wait_cqes when ts is NULL. It is implicitly allowed to be NULL by "If ts is specified and an older kernel without..." but it isn't clear what happens. Is it an infinite timeout or no timeout (like peek) or something else?

axboe commented 3 weeks ago

Like any of the timeout functions, if NULL is given it's an infinite timeout.