File: cacheflush.2

package info (click to toggle)
manpages-de 0.4-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,808 kB
  • ctags: 4
  • sloc: sh: 7,666; makefile: 60
file content (75 lines) | stat: -rw-r--r-- 2,311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.\" Geschrieben von Ralf Baechle (ralf@waldorf-gmbh.de),
.\" Copyright (c) 1994, 1995 Waldorf GMBH
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.TH CACHEFLUSH 2 "30 Juni 95" "Linux" "Systemaufrufe"
.SH BEZEICHNUNG
cacheflush \- Befehls- und Datencaches entleeren
.SH UBERSICHT
.nf
.B #include <asm/cachectl.h>
.sp
.BI "int cacheflush(char *" addr ", int "nbytes ", int "cache ");"
.fi
.SH BESCHREIBUNG
.I Cacheflush
schreibt den als Argument angegebenen Benutzeradressbereich addr bis
(addr+nbytes-1) aus den Caches in den Speicher zurck und invalidiert
die betroffenen Cachelines anschlieend.  Cache ist eine der
folgenden Konstanten:
.TP
.B ICACHE
Befehlscache invalidieren.
.TP
.B DCACHE
Den Datencache zurck in den Speicher schreiben und die betroffenen
Cachelines invalidieren.
.TP
.B BCACHE
Identisch mit
.RI ( ICACHE | DCACHE ).
.PP
.SH "RCKGABEWERT"
.B cacheflush
gibt 0 bei Erfolg oder -1 im Fehlerfall zurck.  Sollten Fehler erkannt
werden, enthlt
.I errno
die Fehlernummer.
.SH FEHLER
.TP
.B EINVAL
Der cache Parameter ist nicht
.IR ICACHE ,
.IR DCACHE ,
oder
.IR BCACHE .
.TP
.B EFAULT
Der Adressbereich addr bis (addr+nbytes-1) ist ganz oder teilweise nicht
adressierbar.
.PP
.SH FEHLER
Die aktuelle Implementation ignoriert die addr und nbytes Parameter.
Stattdessen wird immer der gesamte Cache geflusht.
.SH BEMERKUNGEN
Dieser Systemaufruf ist nur auf MIPS-basierten Systemen verfgbar.