Not sure where to ask this question because I mostly never program on Linux, so: where do the errno's go when you issue ops on an io_uring? To the naive user (me), it looks like they simple vanish, since cqe.res is documented as being simply "-1 on error". This can't be right?
-
-
The man page io_uring(7) also include an example which convert the return value to an error number. But the man page also say "res is the result from the system call that was performed as part of the submission; its return value." ... humpic.twitter.com/w8p5WBhYXk
-
That's actually fine - the return value of the _system_ call is what we want :) The part I quoted said it matches the return values documented in the preadv2(2) and pwritev2(2) man pages, which are the return values of _libc_, which is not the syscall.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.