Contents

buf_dataptr

Get the address at which a buffer's data is stored; for iobufs, this must be set with buf_setdataptr(). See buf_map().

Declaration

uintptr_t buf_dataptr(buf_t bp);

Parameters

  • bp:

    Buffer whose data pointer to retrieve.

Return Value

Data pointer; NULL if unset.

See Also

Buffers