OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / 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 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
25 .\"         all rights reserved.
26 .\" Translated Sat Feb 22 20:07:45 JST 1997
27 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
28 .\" Updated 2007-06-13, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.55
29 .\"
30 .\"WORD:        instruction cache       Ì¿Îᥭ¥ã¥Ã¥·¥å
31 .\"WORD:        data cache              ¥Ç¡¼¥¿¥­¥ã¥Ã¥·¥å
32 .\"WORD:        flush                   ¥Õ¥é¥Ã¥·¥å
33 .\"
34 .TH CACHEFLUSH 2 2007-05-26 "Linux" "Linux Programmer's Manual"
35 .SH Ì¾Á°
36 cacheflush \- Ì¿Îᥭ¥ã¥Ã¥·¥å¤ä¥Ç¡¼¥¿¥­¥ã¥Ã¥·¥å¤ÎÆâÍƤò¥Õ¥é¥Ã¥·¥å¤¹¤ë
37 .SH ½ñ¼°
38 .nf
39 .B #include <asm/cachectl.h>
40 .sp
41 .BI "int cacheflush(char *" addr ", int "nbytes ", int "cache );
42 .fi
43 .SH ÀâÌÀ
44 .BR cacheflush ()
45 ¤Ï
46 .I addr
47 ¤«¤é
48 .I (addr+nbytes-1)
49 ¤ÎÈϰϤΥ桼¥¶¥¢¥É¥ì¥¹¤ËÂбþ¤¹¤ë
50 »ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
51 .I cache
52 ¤Ë¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«¤ò»ØÄꤹ¤ë:
53 .TP
54 .B ICACHE
55 Ì¿Îá (instruction) ¥­¥ã¥Ã¥·¥å¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
56 .TP
57 .B DCACHE
58 Êѹ¹¤¬¤¢¤Ã¤¿¥­¥ã¥Ã¥·¥å¥é¥¤¥ó¤ò¥á¥â¥ê¤Ë½ñ¤­Ìᤷ¡¢Ìµ¸ú¤Ë¤¹¤ë¡£
59 .TP
60 .B BCACHE
61 .B (ICACHE|DCACHE)
62 ¤ÈƱ¤¸¡£
63 .SH ÊÖ¤êÃÍ
64 .BR cacheflush ()
65 ¤ÏÀ®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤ò¡¢¼ºÇÔ¤·¤¿¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤¬¸¡½Ð¤µ¤ì¤¿¾ì¹ç¤Ï
66 .I errno
67 ¤Ë¥¨¥é¡¼¤¬»Ø¼¨¤µ¤ì¤ë¡£
68 .SH ¥¨¥é¡¼
69 .TP
70 .B EFAULT
71 .I addr
72 ¤«¤é
73 .I (addr+nbytes-1)
74 ¤ÎÈϰϤΥ¢¥É¥ì¥¹¤ÎÁ´¤Æ¤Þ¤¿¤Ï°ìÉô¤¬
75 ¥¢¥¯¥»¥¹²Äǽ¤Ç¤Ï¤Ê¤¤¡£
76 .TP
77 .B EINVAL
78 .I cache
79 ¥Ñ¥é¥á¡¼¥¿¤¬
80 .BR ICACHE ,
81 .BR DCACHE , 
82 .B BCACHE
83 ¤Î¤É¤ì¤Ç¤â¤Ê¤¤¡£
84 .SH ½àµò
85 ¤³¤Î Linux ÆÃÍ­¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï MIPS ¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à¤Ç¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
86 .\" FIXME This system call was only on MIPS back in 1.2 days, but
87 .\" by now it is on a number of other architectures (but not i386).
88 .\" Investigate the details and update this page.
89 °Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
90 .\" Irix 6.5 appears to have a cacheflush() syscall -- mtk
91 .SH ¥Ð¥°
92 ¸½ºß¤Î¼ÂÁõ¤Ç¤Ï¡¢°ú¤­¿ô
93 .I addr
94 ¤È
95 .I nbytes
96 ¤Ï̵»ë¤µ¤ì¤ë¡£¤½¤Î¤¿¤á¡¢
97 ¾ï¤ËÁ´¤Æ¤Î¥­¥ã¥Ã¥·¥å¤¬¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£