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);
Description
bcmp compares bcount bytes
starting at kernel address m1 to
bcount bytes starting at kernel address m2.
Arguments
m1, m2
Starting locations of memory to be compared
bcount
Number of bytes to be compared.
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.