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;
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. |
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.