bcmp(D3) bcmp(D3)
NAME
bcmp - compare data between two kernel address locations
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
int bcmp(caddr_t m1, caddr_t m2, size_t bcount);
Arguments
m1, m2 Starting locations of memory to be compared
bcount Number of bytes to be compared.
DESCRIPTION
bcmp compares bcount bytes starting at kernel address m1 to
bcount bytes starting at kernel address m2.
Return Values
bcmp returns 0 if they are the same, otherwise 1.
USAGE
The source and destination address ranges must both be within
the kernel address space and must be memory resident. No
range checking is done. Addresses within user address space
are not valid arguments; specifying such an address may cause
the driver to corrupt the system in an unpredictable way.
Level
Initialization, Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
bcopy(D3)
NOTICES
Portability
All processors
Applicability
ddi: 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1