purblk Kernel Service

Purpose

Purges the specified block from the buffer cache.

Syntax

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

void purblk ( dev,  blkno)
dev_t dev;
daddr_t blkno;

Parameters

Item Description
dev Specifies the device containing the block to be purged.
blkno Specifies the block to be purged.

Description

The purblk kernel service purges (that is, makes unreclaimable by marking the block with a value of STALE) the specified block from the buffer cache.

Execution Environment

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

Return Values

The purblk service has no return values.