[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

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

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.

Implementation Specifics

The bflush kernel service is part of Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Contents | Home | Search ]