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?
And so if you then look at the documented return values of preadv2(2) and pwritev2(2), it says:pic.twitter.com/1RD6uTJGmq
-
-
I guess this is just a mistake in the man pages?
-
If it's not clear enough how it works, then they should be improved of course. But I'm honestly a bit at a loss at how you would arrive at that conclusion :-) But I'm always interested in improving it, especially if basic concepts like that aren't clear.
- Show replies
New conversation -
-
-
Right, because that's _all_ system calls. The text is supposed to be understood as the _values_ being the same. eg cqe->res == -EINVAL. If you had 5 CQEs pending all with -1, would would errno be?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.