Flushes all write-behind blocks on the specified device from the buffer cache.
#include <sys/types.h> #include <sys/errno.h> #include <sys/buf.h>
void bflush ( dev)
dev_t dev;
dev | Specifies which device to flush. A value of NODEVICE flushes all devices. |
The bflush kernel service runs the free list of buffers. It notes as busy or writing any dirty buffer whose block is on the specified device. When a value of NODEVICE is specified, the bflush service flushes all write-behind blocks for all devices. The bflush service has no return values.
The bflush kernel service can be called from the process environment only.
The bwrite kernel service.
Block I/O Buffer Cache Kernel Services: Overview and I/O Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.