Makes nonreclaimable all blocks in the buffer cache of a specified device.
#include <sys/types.h> #include <sys/errno.h> #include <sys/buf.h>
void binval (dev) dev_t dev;
dev | Specifies the device to be purged. |
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.
The binval kernel service can be called from the process environment only.
The binval service has no return values.
The binval kernel service is part of Base Operating System (BOS) Runtime.
The bflush kernel service, blkflush 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.