[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    bzero(9F) manual page Table of Contents

Name

bzero - clear memory for a given number of bytes

Synopsis


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

void bzero(caddr_t addr, size_t bytes);

Interface Level

Architecture independent level 1 (DDI/DKI).

Arguments

addr
Starting virtual address of memory to be cleared.
bytes
The number of bytes to clear starting at addr.

Description

bzero() clears a contiguous portion of memory by filling it with zeros.

Context

bzero() can be called from user or interrupt context.

See Also

bcopy(9F) , clrbuf(9F) , kmem_zalloc(9F)

Warnings

The address range specified must be within the kernel space. No range checking is done. If an address outside of the kernel space is selected, the driver may corrupt the system in an unpredictable way.


Table of Contents