The kernel must provide a set of operations so that the rest of the code can easily and efficiently exploit the functionality of buffers. This section describes the mechanisms for creating and managing new buffer heads.
Caution: These mechanisms make no contribution to the actual caching of data in memory, discussed in later sections.
Before buffers can be used, the kernel must first create an instance of the buffer_head structure on which the remaining functions act. As the new generation of new buffer heads is a frequently recurring task, it should be performed as quickly as possible. This is a classical situation for the use of a slab cache as described in Chapter 3.
Continue reading here: Interaction of Page and Buffer Cache
Was this article helpful?