bflush Kernel Service

Purpose

Flushes all write-behind blocks on the specified device from the buffer cache.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/buf.h>

void bflush ( dev)
dev_t  dev;

Parameter

Item Description
dev Specifies which device to flush. A value of NODEVICE flushes all devices.

Description

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.

Execution Environment

The bflush kernel service can be called from the process environment only.