| 12
 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
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 
 | .\" -*- 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 <esr@thyrsus.com>
.\"
.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 DESCRIO
.B bdflush
inicia, descarrega, ou ajusta o daemon descarregador de buffer sujo.
Somente o super-usurio pode chamar
.BR bdflush .
.PP
Se
.I func
 negativo ou 0, e o daemon no tiver sido iniciado, ento
.B bdflush
entra o cdigo do daemon e jamais retorna.
.PP
Se
.I func
 igual a 1,
alguns buffers sujos so escritos no disco.
.PP
Se
.I func
 igual a 2 ou mais e  par (bit mais baixo  0), ento
.I address
 o endereo de uma palavra longa,
e o parmetro de ajuste numerado
.RI "(" "func" "\-2)/2"
 retornado para o chamador nesse endereo.
.PP
Se
.I func
 igual a 3 ou mais e  impar (bit mais baixo  1), ento
.I data
 uma palavra longa,
e o kernel colocar o parmetro de ajuste numerado
.RI "(" "func" "\-3)/2"
para esse valor.
.PP
O conjunto de parmetros, seus valores e seus limites permitidos
so 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 no  super-usurio.
.TP
.B EFAULT
.I address
aponta para fora de seu espao de endereos acessveis.
.TP
.B EBUSY
Foi feita uma tentativa de entrada no cdigo do daemon aps
outro processo j ter entrado.
.TP
.B EINVAL
Foi feita uma tentativa de ler ou escrever um nmero invlido de
parmetro ou de escrever um valor invlido para um parmetro.
.SH "CONFORMIDADE"
\fBbdflush\fP  especfico para Linux e no deve ser usado em
programas concebidos para serem portveis.
.SH "VEJA TAMBM"
.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 <marcelobeckmann@yahoo.com> (traduo)\fR
\&\fR\&\f(CWFbio Henrique F. Silva <fabiohfs@mail.com> (reviso)\fR
 |