1CACHEFLUSH(2) Linux Programmer's Manual CACHEFLUSH(2)
2
3
4
6 cacheflush - flush contents of instruction and/or data cache
7
9 #include <asm/cachectl.h>
10
11 int cacheflush(char *addr, int nbytes, int cache);
12
14 cacheflush() flushes contents of indicated cache(s) for user addresses
15 in the range addr to (addr+nbytes-1). Cache may be one of:
16
17 ICACHE Flush the instruction cache.
18
19 DCACHE Write back to memory and invalidate the affected valid cache
20 lines.
21
22 BCACHE Same as (ICACHE|DCACHE).
23
25 cacheflush() returns 0 on success or -1 on error. If errors are
26 detected, errno will indicate the error.
27
29 EFAULT Some or all of the address range addr to (addr+nbytes-1) is not
30 accessible.
31
32 EINVAL cache parameter is not one of ICACHE, DCACHE, or BCACHE.
33
35 The current implementation ignores the addr and nbytes arguments.
36 Therefore, the whole cache is always flushed.
37
39 This system call is only available on MIPS based systems. It should
40 not be used in programs intended to be portable.
41
42
43
44Linux 2.0.32 1995-06-27 CACHEFLUSH(2)