1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995.
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
25 .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
26 .\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
29 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
30 .\" all rights reserved.
31 .\" Translated Sat Feb 22 20:03:58 JST 1997
32 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\" Updated & Modified Thu Feb 3 03:15:15 JST 2005
34 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
36 .\"WORD: buffer-dirty-flush バッファー・ダーティー・フラッシュ
40 .\"WORD: long word ロング・ワード
41 .\"WORD: parameter パラメーター
42 .\"WORD: source file ソース・ファイル
44 .TH BDFLUSH 2 2004-06-17 "Linux" "Linux Programmer's Manual"
47 .\"O bdflush \- start, flush, or tune buffer-dirty-flush daemon
48 bdflush \- バッファー・ダーティー・フラッシュ・デーモンを起動、フラッシュ、調整する
52 .B #include <sys/kdaemon.h>
54 .BI "int bdflush(int " func ", long *" address );
55 .BI "int bdflush(int " func ", long " data );
60 .\"O starts, flushes, or tunes the buffer-dirty-flush daemon.
62 はバッファー・ダーティー・フラッシュ (buffer-dirty-flush)・
63 デーモン (daemon) を起動、フラッシュ (flush)、調整 (tune) する。
64 .\"O Only a privileged process (one with the
66 .\"O capability) may call
69 ケーパビリティ (capability) を持つ) 特権プロセスのみが
75 .\"O is negative or 0, and no daemon has been started, then
77 .\"O enters the daemon code and never returns.
79 が負か 0 でデーモンが起動されていなれば、
86 .\"O some dirty buffers are written to disk.
89 汚れた (dirty) バッファーがディスクへと書き込まれる。
93 .\"O is 2 or more and is even (low bit is 0), then
95 .\"O is the address of a long word,
96 .\"O and the tuning parameter numbered
97 .\"O .RI "(" "func" "\-2)/2"
98 .\"O is returned to the caller in that address.
100 が 2 以上で偶数 (最小ビットが 0) ならば、
102 にロング・ワードでアドレスを指定し、そのアドレスに
103 .RI "(" "func" "\-2)/2"
108 .\"O is 3 or more and is odd (low bit is 1), then
111 .\"O and the kernel sets tuning parameter numbered
112 .\"O .RI "(" "func" "\-3)/2"
115 が 3 以上で奇数 (最小ビットが 1) ならば、
118 .RI "(" "func" "\-3)/2"
121 .\"O The set of parameters, their values, and their valid ranges
122 .\"O are defined in the kernel source file
123 .\"O .IR fs/buffer.c .
124 パラメーターの集合やその値、有効な範囲はカーネルのソース・ファイルの
127 .\"O .SH "RETURN VALUE"
131 .\"O is negative or 0 and the daemon successfully starts,
135 が負か 0 で、デモーンの起動に成功した場合は
138 .\"O Otherwise, the return value is 0 on success and \-1 on failure, with
140 .\"O set to indicate the error.
141 そうでなければ成功した場合には 0 が返される。失敗した場合には \-1 が返され、
148 .\"O An attempt was made to enter the daemon code after
149 .\"O another process has already entered.
150 他のプロセスが既にデーモン・コードに入っているのに、入ろうと試みた。
154 .\"O points outside your accessible address space.
156 がアクセス可能なアドレス空間の外部を指している。
159 .\"O An attempt was made to read or write an invalid parameter number,
160 .\"O or to write an invalid value to a parameter.
161 不正なパラメーターの読み書きを試みたか、パラメーターへ不正な値を
165 .\"O Caller does not have the
166 .\"O .B CAP_SYS_ADMIN
171 .\"O .SH "CONFORMING TO"
174 .\"O is Linux-specific and should not be used in programs
175 .\"O intended to be portable.
177 は Linux 特有であり移植を意図したプログラムで使用すべきではない。