Lines Matching refs:buffer
35 * Actually destroy the buffer.
41 struct pb_buffer *buf = entry->buffer;
79 * Add a buffer to the cache. This is typically done when the buffer is
87 struct pb_buffer *buf = entry->buffer;
98 /* Directly release any buffer that exceeds the limit. */
123 struct pb_buffer *buf = entry->buffer;
143 * Find a compatible buffer in the cache, return it, and remove it
177 /* This buffer (and all hereafter) are still hot in cache */
180 /* the buffer is busy (and probably all remaining ones too) */
206 /* found a compatible buffer, return it */
208 struct pb_buffer *buf = entry->buffer;
256 entry->buffer = buf;
262 * Initialize a caching buffer manager.
264 * @param mgr The cache buffer manager
266 * for faster buffer matching (alternative to slower
273 * buffer allocation requests are rejected.
276 * @param destroy_buffer Function that destroys a buffer for good.
277 * @param can_reclaim Whether a buffer can be reclaimed (e.g. is not busy)