Sets the memory for the specified buffer structure's buffer to all zeros.
#include <sys/types.h> #include <sys/errno.h>
void clrbuf (bp) struct buf *bp;
bp | Specifies the address of the buffer structure for the buffer to be cleared. |
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.
The clrbuf kernel service can be called from either the process or interrupt environment.
The clrbuf service has no return values.
The clrbuf kernel service is part of Base Operating System (BOS) Runtime.
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.