xmemzero Kernel Service

Purpose

Zeros a buffer described by a cross memory descriptor.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/vmuser.h>

int xmemzero ( dp, uaddr, count)
struct xmem * dp;
caddr_t uaddr;
long count;

Parameters

Item Description
dp The cross memory descriptor.
uaddr The address in the buffer to begin zeroing.
count The number of bytes to be zeroed.

Description

The xmemzero kernel service zeros a buffer described by a cross memory descriptor. The page specified must be in memory.

Execution Environment

The xmemzero kernel service can be called from a process or an interrupt environment.

Return Values

Item Description
XMEM_SUCC Indicates the area in the buffer has been zeroed.
XMEM_FAIL Indicates one of the following errors:
  • The descriptor is marked by XMEM_REMIO.
  • The descriptor is not marked by XMEM_PROC and XMEM_GLOBAL.
  • Count < 0.