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;
Item | Description |
---|---|
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.