DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

bcmp(D3)


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.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

bcopy(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005