File: bdflush.2

package info (click to toggle)
manpages-fr 1.58.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,104 kB
  • ctags: 4
  • sloc: makefile: 106; sh: 8
file content (108 lines) | stat: -rw-r--r-- 3,150 bytes parent folder | download
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
.\" 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.
.\"
.\" Traduction 16/10/1996 par Christophe Blaess (ccb@club-internet.fr)
.\" Mise a jour 8/04/97
.\" Mise a jour 18/07/2003 - LDP-1.56
.TH BDFLUSH 2 "18 juillet 2003" LDP "Manuel du programmeur Linux"
.SH NOM
bdflush \- Dmarrer, vider, ajuster le dmon buffer-dirty-flush.
.SH SYNOPSIS
.nf
.BI "int bdflush(int"  " func, " "long *" address);
.BI "int bdflush(int"  " func, " "long " data);
.fi
.SH DESCRIPTION
.B bdflush
dmarre, vide ou ajuste le dmon bdflush (buffer-dirty-flush).
Seul le Super\-User peut appeler
.BR bdflush .
.PP
Si
.I func
est ngatif ou nulle, et si aucun dmon n'a dmarr, alors
.B bdflush
bascule en fonctionnement dmon, et ne revient pas.
.PP
Si
.I func
vaut 1,
les buffers remplis sont crits sur le disque.
.PP
Si
.I func
vaut 2 ou plus et est paire (bit poids faible  0), alors
.I address
correspond  l'adresse d'un mot long et
le paramtre numro
.RI "(" "func" "\-2)/2"
est renvoy  cette adresse.
.PP
Si
.I func
vaut 3 ou plus et est impair (bit poids faible  1), alors
.I data
est un mot long et le noyau
crit cette valeur dans
le paramtre numro
.RI "(" "func" "\-3)/2" .
.PP
Le jeu de paramtres, leurs valeurs, et leurs intervalles
lgaux sont dfinis dans les sources du noyau, dans le fichier
.IR fs/buffer.c .
.SH "VALEUR RENVOYE"
Si
.I func
est ngative ou nulle, et si le dmon dmarre correctement,
.B bdflush
ne revient pas.
Autrement la valeur renvoye vaut 0 en russite et \-1 en chec auquel cas
.I errno
contient le code d'erreur.
.SH ERREURS
.TP 
.B EPERM
L'appelant n'est pas le Super\-User.
.TP
.B EFAULT
.I address
pointe en dehors de l'espace d'adressage accessible.
.TP
.B EBUSY
On tente d'excuter le code du dmon aprs qu'un autre
processus l'ait dj dmarr.
.TP
.B EINVAL
Numro de paramtre invalide, ou criture d'une valeur
invalide dans le paramtre.
.SH CONFORMIT
\fBbdflush\fP est spcifique  Linux et ne doit pas tre
employ dans des programmes destins  tre portables.
.SH "VOIR AUSSI"
.BR fsync (2),
.BR sync (2),
.BR update (8),
.BR sync (8).
.SH TRADUCTION
Christophe Blaess, 1996-2003.