Contents

buf_clear

Zero out the storage associated with a buffer.

Declaration

void buf_clear(buf_t bp);

Parameters

  • bp:

    The buffer to zero out.

Return Value

void.

Discussion

Calls buf_map() to get the buffer's data address; for a B_CLUSTER buffer (one which has had buf_setupl() called on it), it tries to map the buffer's UPL into memory; should only be called once during the life cycle of an iobuf (one allocated with buf_alloc()).

See Also

Buffers