Unix-system-calls-cacheflush

提供:Dev Guides
移動先:案内検索

[top]#

|http://www.google.com/[Google] | a|

Web This Site
  • 初心者向けのUnix *
  • 高度なUnix *

選択した読書

Copyright©2014 by finddevguides

[cols=",,,,,,,",]

| |  Home   | |  References   | |  Discussion Forums   | |  About TP  

[width="100%",cols="100%",]

a| == cacheflush()-Unix、Linuxシステムコール

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]

広告

NAME

cacheflush-命令および/またはデータキャッシュの内容をフラッシュします

概要

#include <asm/cachectl.h> int cacheflush(char* addr, int nbytes, int cache);

説明

*cacheflush* ()は、addrから(addr + nbytes-1)の範囲のユーザーアドレスの指定されたキャッシュの内容をフラッシュします。 キャッシュは次のいずれかです。
Tag Description
ICACHE Flush the instruction cache.
DCACHE Write back to memory and invalidate the affected valid cache lines.
*BCACHE * Same as* (ICACHE

返り値

*cacheflush* ()は成功すると0を返し、エラー時には-1を返します。 エラーが検出された場合、errnoはエラーを示します。

エラー

Error Code Description
EFAULT Some or all of the address range addr to (addr+nbytes-1) is not accessible.
EINVAL cache parameter is not one of ICACHE, DCACHE, or BCACHE.

BUGS

現在の実装では、_addr_および_nbytes_引数を無視します。 したがって、キャッシュ全体が常にフラッシュされます。

NOTE

このシステムコールは、MIPSベースのシステムでのみ使用できます。 移植を目的としたプログラムでは使用しないでください。

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]

広告

|  

[cols="^",]

|Advertisements