BZERO(9F) Kernel Functions for Drivers BZERO(9F)
bzero - clear memory for a given number of bytes
#include <sys/ddi.h> void bzero
, size_t bytes
Architecture independent level 1 (DDI/DKI).
Starting virtual address of memory to be cleared. bytes
The number of bytes to clear starting at addr
function clears a contiguous portion of memory by filling it
function can be called from user, interrupt, or kernel
SEE ALSO bcopy(9F)
, kmem_zalloc(9F) Writing Device Drivers
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.
January 16, 2006 BZERO(9F)