Contents

buf_vnode

Get the vnode associated with a buffer.

Declaration

vnode_t buf_vnode(buf_t bp);

Parameters

  • bp:

    Buffer whose vnode to retrieve.

Return Value

Buffer's vnode.

Discussion

Every buffer is associated with a file. Because there is an I/O in flight, there is an iocount on this vnode; it is returned WITHOUT an extra iocount, and vnode_put() need NOT be called.

See Also

Buffers