.\" -*- nroff -*- .\" .\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995. .\" .\" 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. .\" .\" Modified Fri Jan 31 16:14:33 1997 by Eric S. Raymond .\" .TH BDFLUSH 2 "15 Abril 1995" "Linux 1.2.4" "Manual do Programador Linux" .SH NOME bdflush \- inicia, descarrega, ou ajusta o daemon descarregador de buffer sujo .SH SINOPSE .nf .BI "int bdflush(int" " func, " "long *" "address);" .BI "int bdflush(int" " func, " "long" " data);" .fi .SH DESCRIÇÃO .B bdflush inicia, descarrega, ou ajusta o daemon descarregador de buffer sujo. Somente o super-usuário pode chamar .BR bdflush . .PP Se .I func é negativo ou 0, e o daemon não tiver sido iniciado, então .B bdflush entra o código do daemon e jamais retorna. .PP Se .I func é igual a 1, alguns buffers sujos são escritos no disco. .PP Se .I func é igual a 2 ou mais e é par (bit mais baixo é 0), então .I address é o endereço de uma palavra longa, e o parâmetro de ajuste numerado .RI "(" "func" "\-2)/2" é retornado para o chamador nesse endereço. .PP Se .I func é igual a 3 ou mais e é impar (bit mais baixo é 1), então .I data é uma palavra longa, e o kernel colocará o parâmetro de ajuste numerado .RI "(" "func" "\-3)/2" para esse valor. .PP O conjunto de parâmetros, seus valores e seus limites permitidos são definidos no arquivo fonte do kernel .IR fs/buffer.c . .SH "VALOR DE RETORNO" Se .I func é negativo ou 0 e o daemon iniciou com sucesso, .B bdflush jamais retorna. Doutra forma, o valor de retorno é 0 em caso de sucesso e \-1 em caso de falha, sendo .I errno ajustado para indicar o erro. .SH ERROS .TP .B EPERM Chamador não é super-usuário. .TP .B EFAULT .I address aponta para fora de seu espaço de endereços acessíveis. .TP .B EBUSY Foi feita uma tentativa de entrada no código do daemon após outro processo já ter entrado. .TP .B EINVAL Foi feita uma tentativa de ler ou escrever um número inválido de parâmetro ou de escrever um valor inválido para um parâmetro. .SH "CONFORMIDADE" \fBbdflush\fP é específico para Linux e não deve ser usado em programas concebidos para serem portáveis. .SH "VEJA TAMBÉM" .BR fsync (2), .BR sync (2), .BR update (8), .BR sync (8) .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