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 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 110 111 112
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" 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., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Modified Fri Jan 31 16:14:33 1997 by Eric S. Raymond <esr@thyrsus.com>
.\"
.\" Translated 15 Dec 1995 Miguel A. Sepulveda (miguel@typhoon.harvard.edu)
.\" Modified 30 June 1996 Miguel A. Sepulveda (angel@vivaldi.princeton.edu)
.\" Translation revised Tue 26 May 1998 by Gerrado Aburruzaga Garca
.\" <gerardo@cica.es>
.\"
.TH BDFLUSH 2 "30 Junio 1996" "Linux 1.2.4" "Manual del Programador de Linux"
.SH NOMBRE
bdflush \- inicia, vuelca, o ajusta el demonio para la limpieza de bferes
sucios o modificados
.SH SINOPSIS
.nf
.BI "int bdflush(int" " func, " "long *" "address);"
.BI "int bdflush(int" " func, " "long" " data);"
.fi
.SH DESCRIPCIN
.B bdflush
inicia, limpia o ajusta el demonio "bdflush".
Solamente el superusuario puede llamar a
.BR bdflush .
.PP
Si
.I func
es negativo 0, y no se ha iniciado demonio alguno, entonces
.B bdflush
entra en el cdigo del demonio y nunca regresa.
.PP
Si
.I func
es 1,
algunos bferes sucios (modificados) se escriben en el disco.
.PP
Si
.I func
es 2 ms y es par (el bit menos significativo es 0), entonces
.I address
es la direccin de una palabra larga
y el valor del parmetro de ajuste cuyo nmero es
.RI "(" "func" "\-2)/2"
se devuelve en dicha direccin.
.PP
Si
.I func
es 3 ms e impar (el bit menos significativo es 1), entonces
.I data
es una palabra larga
y el ncleo asigna dicho valor al parmetro de ajuste cuyo nmero es
.RI "(" "func" "\-3)/2"
.PP
El conjunto de parmetros, sus valores y sus intervalos vlidos
estn especificados en el fichero
.IR fs/buffer.c
de los fuentes del ncleo.
.SH "VALOR DEVUELTO"
Si
.I func
es negativo 0 y el demonio comienza satisfactoriamente,
.B bdflush
nunca regresa.
En caso contrario, el valor devuelto es 0 en caso de xito y \-1 en caso de
error, y a
.I errno
se le asigna el tipo de error.
.SH ERRORES
.TP 0.8i
.B EPERM
El que llama a esta rutina no es el superusuario.
.TP
.B EFAULT
La direccin
.I address
apunta afuera de su espacio de direcciones accesible.
.TP
.B EBUSY
Se ha intentado entrar en el cdigo del demonio despus de que
otro proceso ya lo haya hecho.
.TP
.B EINVAL
Se ha intentado leer o escribir un nmero de parmetro invlido,
o asignar un valor invlido a un parmetro.
.SH "CONFORME A"
\fBbdflush\fP es una funcin especfica de Linux y no se debe usar en
aquellos programas que pretendan ser transportables.
.SH "VASE TAMBIN"
.BR fsync "(2), " sync "(2), " update "(8), " sync (8).
|