binval Kernel Service

Purpose

Makes nonreclaimable all blocks in the buffer cache of a specified device.

Syntax

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

void binval ( dev)
dev_t  dev;

Parameter

Item Description
dev Specifies the device to be purged.

Description

The binval kernel service makes nonreclaimable all blocks in the buffer cache of a specified device. Before removing the device from the system, use the binval service to remove the blocks.

All of blocks of the device to be removed need to be flushed before you call the binval service. Typically, these blocks are flushed after the last close of the device.

Execution Environment

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

Return Values

The binval service has no return values.