'\" te .\" Copyright 1989 AT&T .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved .TH bzero 9F "16 Jan 2006" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME bzero \- clear memory for a given number of bytes .SH SYNOPSIS .LP .nf #include #include \fBvoid\fR \fBbzero\fR(\fBvoid *\fR\fIaddr\fR, \fBsize_t\fR \fIbytes\fR); .fi .SH INTERFACE LEVEL .sp .LP Architecture independent level 1 (DDI/DKI). .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIaddr\fR\fR .ad .RS 9n .rt Starting virtual address of memory to be cleared. .RE .sp .ne 2 .mk .na \fB\fIbytes\fR\fR .ad .RS 9n .rt The number of bytes to clear starting at \fIaddr\fR. .RE .SH DESCRIPTION .sp .LP The \fBbzero()\fR function clears a contiguous portion of memory by filling it with zeros. .SH CONTEXT .sp .LP The \fBbzero()\fR function can be called from user, interrupt, or kernel context. .SH SEE ALSO .sp .LP \fBbcopy\fR(9F), \fBclrbuf\fR(9F), \fBkmem_zalloc\fR(9F) .sp .LP \fIWriting Device Drivers for Oracle Solaris 11.2\fR .SH WARNINGS .sp .LP 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.