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"
46 bdflush \- バッファー・ダーティー・フラッシュ・デーモンを起動、フラッシュ、調整する
49 .B #include <sys/kdaemon.h>
51 .BI "int bdflush(int " func ", long *" address );
52 .BI "int bdflush(int " func ", long " data );
56 はバッファー・ダーティー・フラッシュ (buffer-dirty-flush)・
57 デーモン (daemon) を起動、フラッシュ (flush)、調整 (tune) する。
59 ケーパビリティ (capability) を持つ) 特権プロセスのみが
64 が負か 0 でデーモンが起動されていなれば、
70 汚れた (dirty) バッファーがディスクへと書き込まれる。
73 が 2 以上で偶数 (最小ビットが 0) ならば、
75 にロング・ワードでアドレスを指定し、そのアドレスに
76 .RI "(" "func" "\-2)/2"
80 が 3 以上で奇数 (最小ビットが 1) ならば、
83 .RI "(" "func" "\-3)/2"
86 パラメーターの集合やその値、有効な範囲はカーネルのソース・ファイルの
91 が負か 0 で、デモーンの起動に成功した場合は
94 そうでなければ成功した場合には 0 が返される。失敗した場合には \-1 が返され、
100 他のプロセスが既にデーモン・コードに入っているのに、入ろうと試みた。
104 がアクセス可能なアドレス空間の外部を指している。
107 不正なパラメーターの読み書きを試みたか、パラメーターへ不正な値を
116 は Linux 特有であり移植を意図したプログラムで使用すべきではない。