OSDN Git Service

1e6e34f2a193e8d7272da96a0b4124fb382f9748
[linuxjm/LDP_man-pages.git] / draft / man2 / cacheflush.2
1 .\" Written by Ralf Baechle (ralf@waldorf-gmbh.de),
2 .\" Copyright (c) 1994, 1995 Waldorf GMBH
3 .\"
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
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.
9 .\"
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.
14 .\"
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.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH CACHEFLUSH 2 2007\-05\-26 Linux "Linux Programmer's Manual"
31 .SH 名前
32 cacheflush \- 命令キャッシュやデータキャッシュの内容をフラッシュする
33 .SH 書式
34 .nf
35 \fB#include <asm/cachectl.h>\fP
36 .sp
37 \fBint cacheflush(char *\fP\fIaddr\fP\fB, int \fP\fInbytes\fP\fB, int \fP\fIcache\fP\fB);\fP
38 .fi
39 .SH 説明
40 \fBcacheflush\fP()  は \fIaddr\fP から \fI(addr+nbytes\-1)\fP の範囲のユーザアドレスに対応する
41 指定されたキャッシュをフラッシュする。 \fIcache\fP には以下のいずれかを指定する:
42 .TP 
43 \fBICACHE\fP
44 命令 (instruction) キャッシュをフラッシュする。
45 .TP 
46 \fBDCACHE\fP
47 変更があったキャッシュラインをメモリに書き戻し、無効にする。
48 .TP 
49 \fBBCACHE\fP
50 \fB(ICACHE|DCACHE)\fP と同じ。
51 .SH 返り値
52 \fBcacheflush\fP()  は成功した場合は 0 を、失敗した場合は \-1 を返す。エラーが検出された場合は \fIerrno\fP
53 にエラーが指示される。
54 .SH エラー
55 .TP 
56 \fBEFAULT\fP
57 \fIaddr\fP から \fI(addr+nbytes\-1)\fP の範囲のアドレスの全てまたは一部が アクセス可能ではない。
58 .TP 
59 \fBEINVAL\fP
60 \fIcache\fP パラメータが \fBICACHE\fP, \fBDCACHE\fP, \fBBCACHE\fP のどれでもない。
61 .SH 準拠
62 .\" FIXME This system call was only on MIPS back in 1.2 days, but
63 .\" by now it is on a number of other architectures (but not i386).
64 .\" Investigate the details and update this page.
65 .\" Irix 6.5 appears to have a cacheflush() syscall -- mtk
66 この Linux 特有のシステムコールは MIPS ベースのシステムでのみ有効である。 移植を意図したプログラムで使用すべきではない。
67 .SH バグ
68 現在の実装では、引き数 \fIaddr\fP と \fInbytes\fP は無視される。そのため、 常に全てのキャッシュがフラッシュされる。
69 .SH この文書について
70 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
71 である。プロジェクトの説明とバグ報告に関する情報は
72 http://www.kernel.org/doc/man\-pages/ に書かれている。