CACHEFLUSH(2-SVR3) RISC/os Reference Manual CACHEFLUSH(2-SVR3)
NAME
cacheflush - flush contents of instruction and/or data cache
SYNOPSIS
Headers
For -systype svr3:
#include <sys/cachectl.h>
For -systype bsd43:
#include <mips/cachectl.h>
Declarations
cacheflush(addr, nbytes, cache)
char *addr;
int nbytes, cache;
DESCRIPTION
cacheflush flushes contents of indicated cache(s) for user
addresses in the range addr to (addr+nbytes-1). cache may
be one of:
ICACHE Flush only the instruction cache
DCACHE Flush only the data cache
BCACHE Flush both instruction and data caches
RETURN VALUE
cacheflush returns 0 when no errors are detected. If errors
are detected, cacheflush returns -1 with the error cause
indicated in errno.
ERRORS
[EINVAL] cache parameter is not one of ICACHE, DCACHE, or
BCACHE.
[EFAULT] Some or all of the address range addr to
(addr+nbytes-1) is not accessible.
NOTE
When these routines are used in a program which is compiled
in -systype svr3, they are not resolved by libc.a. See
intro(3-SVR3) for more information.
Printed 11/19/92 Page 1