.\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995. .\" .\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" 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, see .\" . .\" %%%LICENSE_END .\" .\" Modified 1997-01-31 by Eric S. Raymond .\" Modified 2004-06-17 by Michael Kerrisk .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya .\" all rights reserved. .\" Translated Sat Feb 22 20:03:58 JST 1997 .\" by HANATAKA Shinya .\" Updated & Modified Thu Feb 3 03:15:15 JST 2005 .\" by Yuichi SATO .\" .TH BDFLUSH 2 2014\-08\-19 Linux "Linux Programmer's Manual" .SH 名前 bdflush \- バッファーダーティーフラッシュデーモンを起動、フラッシュ、調整する .SH 書式 .nf \fB#include \fP \fBint bdflush(int \fP\fIfunc\fP\fB, long *\fP\fIaddress\fP\fB);\fP \fBint bdflush(int \fP\fIfunc\fP\fB, long \fP\fIdata\fP\fB);\fP .fi .SH 説明 .\" As noted in a changes in the 2.5.12 source \fI注意\fP: Linux 2.6 以降では、このシステムコールは非推奨であり、何も行わない。 将来のカーネルのリリースで完全になくなる可能性が高い。現在は、\fBbdflush\fP() が 実行していた処理はカーネルの \fIpdflush\fP スレッドによって行われている。 \fBbdflush\fP() はバッファーダーティーフラッシュ (buffer\-dirty\-flush) デーモン (daemon) を起動、フラッシュ (flush)、調整 (tune) する。 (\fBCAP_SYS_ADMIN\fP ケーパビリティ (capability) を持つ) 特権プロセスのみが \fBbdflush\fP() を呼び出すことができる。 .PP \fIfunc\fP が負か 0 でデーモンが起動されていなれば、 \fBbdflush\fP() はデーモンのコードへ入り、戻ってこない。 .PP \fIfunc\fP が 1 ならば、 汚れた (dirty) バッファーがディスクへと書き込まれる。 .PP \fIfunc\fP が 2 以上で偶数 (最小ビットが 0) ならば、 \fIaddress\fP にロングワードでアドレスを指定し、そのアドレスに (\fIfunc\fP\-2)/2 で指定された調節パラメーターが返される。 .PP \fIfunc\fP が 3 以上で奇数 (最小ビットが 1) ならば、 \fIdata\fP をロングワードで指定し、その値を (\fIfunc\fP\-3)/2 で指定された調節パラメーターに設定する。 .PP パラメーターの集合やその値、有効な範囲は Linux カーネルソースの \fIfs/buffer.c\fP に定義されている。 .SH 返り値 \fIfunc\fP が負か 0 で、デモーンの起動に成功した場合は \fBbdflush\fP() は返ってこない。 そうでなければ成功した場合には 0 が返される。失敗した場合には \-1 が返され、 \fIerrno\fP にそのエラーが指示される。 .SH エラー .TP \fBEBUSY\fP 他のプロセスが既にデーモンコードに入っているのに、入ろうと試みた。 .TP \fBEFAULT\fP \fIaddress\fP がアクセス可能なアドレス空間の外部を指している。 .TP \fBEINVAL\fP 不正なパラメーターの読み書きを試みたか、パラメーターへ不正な値を 書き込もうとした。 .TP \fBEPERM\fP 呼び出し元に \fBCAP_SYS_ADMIN\fP ケーパビリティがない。 .SH 準拠 \fBbdflush\fP() は Linux 特有であり移植を意図したプログラムで使用すべきではない。 .SH 関連項目 \fBfsync\fP(2), \fBsync\fP(2), \fBsync\fP(1) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。