1 .\" Written by Ralf Baechle (ralf@waldorf-gmbh.de),
2 .\" Copyright (c) 1994, 1995 Waldorf GMBH
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
24 .TH CACHEFLUSH 2 2007-05-26 "Linux" "Linux Programmer's Manual"
26 cacheflush \- flush contents of instruction and/or data cache
29 .B #include <asm/cachectl.h>
31 .BI "int cacheflush(char *" addr ", int "nbytes ", int "cache );
35 flushes the contents of the indicated cache(s) for the
36 user addresses in the range
44 Flush the instruction cache.
47 Write back to memory and invalidate the affected valid cache lines.
54 returns 0 on success or \-1 on error.
55 If errors are detected,
57 will indicate the error.
61 Some or all of the address range
75 This Linux-specific system call is only available on MIPS-based systems.
76 .\" FIXME This system call was only on MIPS back in 1.2 days, but
77 .\" by now it is on a number of other architectures (but not i386).
78 .\" Investigate the details and update this page.
79 It should not be used in programs intended to be portable.
80 .\" Irix 6.5 appears to have a cacheflush() syscall -- mtk
82 The current implementation ignores the
87 Therefore, the whole cache is always flushed.