1 .\" Written by Ralf Baechle (ralf@waldorf-gmbh.de),
2 .\" Copyright (c) 1994, 1995 Waldorf GMBH
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.
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.
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.
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,
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
30 .\"WORD: instruction cache Ì¿Îᥥã¥Ã¥·¥å
31 .\"WORD: data cache ¥Ç¡¼¥¿¥¥ã¥Ã¥·¥å
32 .\"WORD: flush ¥Õ¥é¥Ã¥·¥å
34 .TH CACHEFLUSH 2 2007-05-26 "Linux" "Linux Programmer's Manual"
36 cacheflush \- Ì¿Îᥥã¥Ã¥·¥å¤ä¥Ç¡¼¥¿¥¥ã¥Ã¥·¥å¤ÎÆâÍƤò¥Õ¥é¥Ã¥·¥å¤¹¤ë
39 .B #include <asm/cachectl.h>
41 .BI "int cacheflush(char *" addr ", int "nbytes ", int "cache );
49 ¤ÎÈϰϤΥ桼¥¶¥¢¥É¥ì¥¹¤ËÂбþ¤¹¤ë
50 »ØÄꤵ¤ì¤¿¥¥ã¥Ã¥·¥å¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
52 ¤Ë¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«¤ò»ØÄꤹ¤ë:
55 Ì¿Îá (instruction) ¥¥ã¥Ã¥·¥å¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
58 Êѹ¹¤¬¤¢¤Ã¤¿¥¥ã¥Ã¥·¥å¥é¥¤¥ó¤ò¥á¥â¥ê¤Ë½ñ¤Ìᤷ¡¢Ìµ¸ú¤Ë¤¹¤ë¡£
65 ¤ÏÀ®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤ò¡¢¼ºÇÔ¤·¤¿¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤¬¸¡½Ð¤µ¤ì¤¿¾ì¹ç¤Ï
67 ¤Ë¥¨¥é¡¼¤¬»Ø¼¨¤µ¤ì¤ë¡£
74 ¤ÎÈϰϤΥ¢¥É¥ì¥¹¤ÎÁ´¤Æ¤Þ¤¿¤Ï°ìÉô¤¬
75 ¥¢¥¯¥»¥¹²Äǽ¤Ç¤Ï¤Ê¤¤¡£
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
92 ¸½ºß¤Î¼ÂÁõ¤Ç¤Ï¡¢°ú¤¿ô
96 ¤Ï̵»ë¤µ¤ì¤ë¡£¤½¤Î¤¿¤á¡¢
97 ¾ï¤ËÁ´¤Æ¤Î¥¥ã¥Ã¥·¥å¤¬¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£