[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

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

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

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.

Implementation Specifics

The clrbuf kernel service is part of Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Contents | Home | Search ]