Contents

buf_uploffset

Get the offset into a UPL at which this buffer begins.

Declaration

uint32_t buf_uploffset(buf_t bp);

Parameters

  • bp:

    Buffer whose uploffset to grab.

Return Value

Buffer's uploffset--does not check whether that value makes sense for this buffer.

Discussion

This function should only be called on iobufs, i.e. buffers allocated with buf_alloc().

See Also

Buffers