clrbuf Kernel Service

Purpose

Sets the memory for the specified buffer structure's buffer to all zeros.

Syntax

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

void clrbuf ( bp)
struct buf   *bp;

Parameter

Item Description
bp Specifies the address of the buffer structure for the buffer to be cleared.

On a platform that supports storage keys, the passed in bp parameter must be in the KKEY_PUBLIC or KKEY_BLOCK_DEV protection domain.

Description

The clrbuf kernel service clears the buffer associated with the specified buffer structure. The clrbuf service does this by setting to 0 the memory for the buffer that contains the specified buffer structure.

Execution Environment

The clrbuf kernel service can be called from either the process or interrupt environment.

Return Values

The clrbuf service has no return values.