The Linux Kernel/buffer uptodate
< The Linux Kernelbuffer_uptodate
SYNOPSIS
#include <linux/buffer_head.h> // BUFFER_FNS(Uptodate, uptodate) static inline int buffer_uptodate(const struct buffer_head *bh);
SHORT DESCRIPTION
Returns the up-to-date flag for the given buffer head.
FULL DESCRIPTION
It's implemented as a simple macro, which just isolates a single bit from a field in the buffer_head. It has no side effects of any kind.
RETURN
true, if the buffer is up to date, i.e. the data on the physical storage could be used, to read the data back in to memory.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.