Techniques for handling short reads/writes with scatter-gather?

后端 未结 3 1336
独厮守ぢ
独厮守ぢ 2021-02-06 01:28

Scatter-gather - readv()/writev()/preadv()/pwritev() - reads/writes a variable number of iovec structs in a single system call. Basically it reads/write each buffer sequentiall

3条回答
  •  借酒劲吻你
    2021-02-06 01:45

    Vectored write will write all the data you have provided with one call to "writev" function. So byteswritten will be always be equal to total number of bytes provided as input. this is what my understanding is.

    Please correct me if I am wrong

提交回复
热议问题