.\" Written by Ralf Baechle (ralf@waldorf-gmbh.de), .\" Copyright (c) 1994, 1995 Waldorf GMBH .\" .\" %%%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 .\" .\"******************************************************************* .\" .\" 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:07:45 JST 1997 .\" by HANATAKA Shinya .\" Updated 2007-06-13, Akihiro MOTOKI , LDP v2.55 .\" .TH CACHEFLUSH 2 2007\-05\-26 Linux "Linux Programmer's Manual" .SH 名前 cacheflush \- 命令キャッシュやデータキャッシュの内容をフラッシュする .SH 書式 .nf \fB#include \fP .sp \fBint cacheflush(char *\fP\fIaddr\fP\fB, int \fP\fInbytes\fP\fB, int \fP\fIcache\fP\fB);\fP .fi .SH 説明 \fBcacheflush\fP() は \fIaddr\fP から \fI(addr+nbytes\-1)\fP の範囲のユーザーアドレスに対応する 指定されたキャッシュをフラッシュする。 \fIcache\fP には以下のいずれかを指定する: .TP \fBICACHE\fP 命令 (instruction) キャッシュをフラッシュする。 .TP \fBDCACHE\fP 変更があったキャッシュラインをメモリーに書き戻し、無効にする。 .TP \fBBCACHE\fP \fB(ICACHE|DCACHE)\fP と同じ。 .SH 返り値 \fBcacheflush\fP() は成功した場合は 0 を、失敗した場合は \-1 を返す。エラーが検出された場合は \fIerrno\fP にエラーが指示される。 .SH エラー .TP \fBEFAULT\fP \fIaddr\fP から \fI(addr+nbytes\-1)\fP の範囲のアドレスの全てまたは一部が アクセス可能ではない。 .TP \fBEINVAL\fP \fIcache\fP パラメーターが \fBICACHE\fP, \fBDCACHE\fP, \fBBCACHE\fP のどれでもない。 .SH 準拠 .\" FIXME The cacheflush() system call was only on MIPS back in 1.2 days, .\" but by now it is on a number of other architectures (but not i386). .\" Investigate the details and update this page. .\" Irix 6.5 appears to have a cacheflush() syscall -- mtk この Linux 特有のシステムコールは MIPS ベースのシステムでのみ有効である。 移植を意図したプログラムで使用すべきではない。 .SH バグ 現在の実装では、引き数 \fIaddr\fP と \fInbytes\fP は無視される。そのため、 常に全てのキャッシュがフラッシュされる。 .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。