1CACHEFLUSH(2)              Linux Programmer's Manual             CACHEFLUSH(2)
2
3
4

NAME

6       cacheflush - flush contents of instruction and/or data cache
7

SYNOPSIS

9       #include <asm/cachectl.h>
10
11       int cacheflush(char *addr, int nbytes, int cache);
12

DESCRIPTION

14       cacheflush()  flushes  the  contents  of the indicated cache(s) for the
15       user addresses in the range addr to (addr+nbytes-1).  cache may be  one
16       of:
17
18       ICACHE Flush the instruction cache.
19
20       DCACHE Write  back  to  memory  and invalidate the affected valid cache
21              lines.
22
23       BCACHE Same as (ICACHE|DCACHE).
24

RETURN VALUE

26       cacheflush() returns 0 on success  or  -1  on  error.   If  errors  are
27       detected, errno will indicate the error.
28

ERRORS

30       EFAULT Some  or all of the address range addr to (addr+nbytes-1) is not
31              accessible.
32
33       EINVAL cache is not one of ICACHE, DCACHE, or BCACHE.
34

CONFORMING TO

36       This Linux-specific system call is only available on  MIPS  based  sys‐
37       tems.  It should not be used in programs intended to be portable.
38

BUGS

40       The  current  implementation  ignores  the  addr  and nbytes arguments.
41       Therefore, the whole cache is always flushed.
42

COLOPHON

44       This page is part of release 3.22 of the Linux  man-pages  project.   A
45       description  of  the project, and information about reporting bugs, can
46       be found at http://www.kernel.org/doc/man-pages/.
47
48
49
50Linux                             2007-05-26                     CACHEFLUSH(2)
Impressum