Contents

buf_setdataptr

Set the address at which a buffer's data will be stored.

Declaration

void buf_setdataptr(buf_t bp, uintptr_t data);

Parameters

  • bp:

    Buffer whose data pointer to set.

  • data:

    Pointer to data region.

Return Value

void.

Discussion

In traditional buffer use, the data pointer will be set automatically. This routine is useful with iobufs (allocated with buf_alloc()).

See Also

Buffers