[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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.

Related Information

Block I/O Buffer Cache Kernel Services: Overview and I/O Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]