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
|
.\" Written by 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.
.\"
.\" Traduction 14/10/1996 par Christophe Blaess (ccb@club-internet.fr)
.\"
.TH CACHEFLUSH 2 "14 Octobre 1996" Linux "Manuel du programmeur Linux"
.SH NOM
cacheflush \- Vider le contenu des mmoires caches.
.SH SYNOPSIS
.nf
.B #include <asm/cachectl.h>
.sp
.BI "int cacheflush(char *" addr ", int "nbytes ", int "cache ");"
.fi
.SH DESCRIPTION
.B cacheflush
vide le contenu des mmoires caches de l'espace d'adressage
utilisateur compris entre addr et (addr+nbytes-1).
La mmoire cache est l'une des suivantes :
.TP
.B ICACHE
Mmoire cache d'instructions
.TP
.B DCACHE
Rcriture du cache et dsactivation du cache concern
.TP
.B BCACHE
identique
.B (ICACHE|DCACHE).
.PP
.SH "VALEUR RENVOYE"
.B cacheflush
renvoie 0 s'il russit. En cas d'chec, \-1 est renvoy et
.I errno
contient le code d'erreur.
.SH ERREURS
.TP
.B EINVAL
Le paramtre de cache n'est pas l'un des trois mentionns ci-dessus.
.TP
.B EFAULT
Une partie de l'espace d'adressage entre addr et (addr+nbytes-1) n'est pas accessible.
.PP
.SH BUGS
L'implmentation actuelle ignore les paramtres addr et nbytes. A la place,
le cache entier est toujours vide.
.SH CONFORMIT
Cet appel systme n'est disponible que sur les systmes MIPS, il ne faut
pas l'employer dans un programme destin tre portable.
.SH "VOIR AUSSI"
.BR cachectl "(2)"
.SH TRADUCTION
Christophe Blaess, 1997.
|