cool-fountain-95457
11/01/2026, 4:21 PMIORING_CQE_F_NOTIF in io_uring_enter(2):
The notification's res field will be set to zero
and the flags field will contain IORING_CQE_F_NOTIF.
The two step model is needed because the kernel may hold on to buffers
for a long time, e.g. waiting for a TCP ACK, and having
a separate cqe for request completions allows userspace
to push more data without extra delays.
specifically last sentence, i always thought it was a big no no to have many inflight sends for the same socket (due to short tcp sends), i'm thinking of the case where you try to send 1000 bytes twice, but the first send is short and you have to reissue it with the remaining bytes until you've sent everything, but you instead made another separate send for another payload without having checked the status of the previous send, so now instead of sending "hello world" and "hi there", you end up sending "hello hi there" or something like that. does any zero copy send function implicitly handle short sends ?