*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> cacheflush (2)              
Title
Content
Arch
Section
 

CACHEFLUSH(2)

Contents


NAME    [Toc]    [Back]

       cacheflush - flush contents of instruction and/or data cache

SYNOPSIS    [Toc]    [Back]

       #include <asm/cachectl.h>

       int cacheflush(char *addr, int nbytes, int cache);

DESCRIPTION    [Toc]    [Back]

       cacheflush flushes contents of indicated cache(s) for user addresses in
       the range addr to (addr+nbytes-1). Cache may be one of:

       ICACHE Flush the instruction cache.

       DCACHE Write back to memory and invalidate  the	affected  valid  cache
	      lines.

       BCACHE Same as (ICACHE|DCACHE).

RETURN VALUE    [Toc]    [Back]

       cacheflush returns 0 on success or -1 on error. If errors are detected,
       errno will indicate the error.

ERRORS    [Toc]    [Back]

       EINVAL cache parameter is not one of ICACHE, DCACHE, or BCACHE.

       EFAULT Some or all of the address range addr to (addr+nbytes-1) is  not
	      accessible.

BUGS    [Toc]    [Back]

       The  current  implementation  ignores  the  addr and nbytes parameters.
       Therefore always the whole cache is flushed.

NOTE    [Toc]    [Back]

       This system call is only available on MIPS based  systems.   It	should
       not be used in programs intended to be portable.



Linux 2.0.32			  1995-06-27			 CACHEFLUSH(2)
[ Back ]
 Similar pages
Name OS Title
arm_sync_icache NetBSD clean the cpu data cache and flush the cpu instruction cache
m68k_sync_icache NetBSD instruction cache synchronization
sync FreeBSD force completion of pending disk writes (flush cache)
sync OpenBSD force completion of pending disk writes (flush cache)
dump_clerk_cache HP-UX Displays the contents of the clerk cache
tcflush Tru64 Flush nontransmitted output data or nonread input data
nisshowcache HP-UX NIS+ utility to print out the contents of the shared cache file
VFS_SYNC FreeBSD flush unwritten data
bdflush Linux start, flush, or tune buffer-dirty-flush daemon
krs_flush HP-UX flush kernel registry services data to disk
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service