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 bflush kernel service is part of Base Operating System (BOS) Runtime.
The bwrite kernel service.
Block I/O Buffer Cache Kernel Services: Overview and I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.