Contents

buf_setresid

Set a count of bytes outstanding for I/O in a buffer.

Declaration

void buf_setresid(buf_t bp, uint32_t resid);

Parameters

  • bp:

    Buffer whose outstanding count to set.

Return Value

Count of unwritten/unread bytes.

Discussion

Set when an I/O operations completes. Examples: called by IOStorageFamily when I/O completes, often called on an "original" buffer when using a manipulated buffer to perform I/O on behalf of the first.

See Also

Buffers