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