.\" 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., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .TH CACHEFLUSH 2 "27 Junho 1995" "Linux 2.0.32" "Manual do Programador Linux" .SH NOME cacheflush \- descarrega o conteúdo do cache de instruções e/ou dados .SH SINOPSE .nf .B #include .sp .BI "int cacheflush(char *" addr ", int "nbytes ", int "cache ");" .fi .SH DESCRIÇÃO .B cacheflush descarrega o conteúdo dos cache(s) indicados pelo usuário nos endereços de addr até (addr+nbytes-1). Cache pode ser um destes: .TP .B ICACHE Descarrega o cache de instruções .TP .B DCACHE Escreve de volta para a memória e invalida as linhas válidas de cache afetadas. .TP .B BCACHE O mesmo que .B (ICACHE|DCACHE). .PP .SH "VALOR DE RETORNO" .B cacheflush returna 0 em caso de sucesso ou -1 em caso de erro. Se erros forem detectados, errno indicará o erro. .SH ERROS .TP .B EINVAL parâmetro cache não corresponde a ICACHE, DCACHE, ou BCACHE. .TP .B EFAULT Algum ou todos os endereços no intervalo de addr até (addr+nbytes-1) não estão acessíveis. .PP .SH BUGS A implementação corrente ignora os parâmetros addr e nbytes. Consequentemente sempre todo o cache é descarregado. .SH NOTA Esse chamada ao sistema está disponível apenas em sistemas baseados em MIPS. Ela não deve ser usada em programas concebidos para serem portados. .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWMarcelo D. Beckmann (tradução)\fR \&\fR\&\f(CWFábio Henrique F. Silva (revisão)\fR