Contents

buf_fromcache

Check if a buffer's data was found in core.

Declaration

int buf_fromcache(buf_t bp);

Parameters

  • bp:

    Buffer to test.

Return Value

Nonzero if we got this buffer's data without doing I/O, 0 if not.

Discussion

Will return truth after a buf_getblk that finds a valid buffer in the cache or the relevant data in core (but not in a buffer).

See Also

Buffers