OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man2 / cacheflush.2
1 .\" Written by Ralf Baechle (ralf@waldorf-gmbh.de),
2 .\" Copyright (c) 1994, 1995 Waldorf GMBH
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
22 .\" USA.
23 .\"
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH CACHEFLUSH 2 2007\-05\-26 Linux "Linux Programmer's Manual"
30 .SH 名前
31 cacheflush \- 命令キャッシュやデータキャッシュの内容をフラッシュする
32 .SH 書式
33 .nf
34 \fB#include <asm/cachectl.h>\fP
35 .sp
36 \fBint cacheflush(char *\fP\fIaddr\fP\fB, int \fP\fInbytes\fP\fB, int \fP\fIcache\fP\fB);\fP
37 .fi
38 .SH 説明
39 \fBcacheflush\fP()  は \fIaddr\fP から \fI(addr+nbytes\-1)\fP の範囲のユーザアドレスに対応する
40 指定されたキャッシュをフラッシュする。 \fIcache\fP には以下のいずれかを指定する:
41 .TP 
42 \fBICACHE\fP
43 命令 (instruction) キャッシュをフラッシュする。
44 .TP 
45 \fBDCACHE\fP
46 変更があったキャッシュラインをメモリに書き戻し、無効にする。
47 .TP 
48 \fBBCACHE\fP
49 \fB(ICACHE|DCACHE)\fP と同じ。
50 .SH 返り値
51 \fBcacheflush\fP()  は成功した場合は 0 を、失敗した場合は \-1 を返す。エラーが検出された場合は \fIerrno\fP
52 にエラーが指示される。
53 .SH エラー
54 .TP 
55 \fBEFAULT\fP
56 \fIaddr\fP から \fI(addr+nbytes\-1)\fP の範囲のアドレスの全てまたは一部が アクセス可能ではない。
57 .TP 
58 \fBEINVAL\fP
59 \fIcache\fP パラメータが \fBICACHE\fP, \fBDCACHE\fP, \fBBCACHE\fP のどれでもない。
60 .SH 準拠
61 .\" FIXME This system call was only on MIPS back in 1.2 days, but
62 .\" by now it is on a number of other architectures (but not i386).
63 .\" Investigate the details and update this page.
64 .\" Irix 6.5 appears to have a cacheflush() syscall -- mtk
65 この Linux 特有のシステムコールは MIPS ベースのシステムでのみ有効である。 移植を意図したプログラムで使用すべきではない。
66 .SH バグ
67 現在の実装では、引き数 \fIaddr\fP と \fInbytes\fP は無視される。そのため、 常に全てのキャッシュがフラッシュされる。