cacheflush(2) System Calls Manual cacheflush(2) cacheflush - / (libc -lc) #include int cacheflush(int nbytes; void addr[nbytes], int nbytes, int cache); : glibc . cacheflush() () addr (addr+nbytes-1). cache : ICACHE . DCACHE . BCACHE (ICACHE|DCACHE). cacheflush() 0 . -1 errno . EFAULT addr (addr+nbytes-1) . EINVAL cache ICACHE DCACHE BCACHE ( ). cacheflush() . MIPS cacheflush() . glibc : ARC CSKY MIPS NIOS2. : M68K: int cacheflush(unsigned long addr, int scope, int cache, unsigned long size); SH: int cacheflush(unsigned long addr, unsigned long size, int op); NDS32: int cacheflush(unsigned int start, unsigned int end, int cache); glibc syscall(2). GCC GCC __builtin___clear_cache() GCC : void __builtin___clear_cache(void *begin, void *end); __builtin___clear_cache() . : GCC char * void * . MIPS UNIX RISC/os IRIX Ultrix NetBSD OpenBSD FreeBSD ( MIPS UNIX) MIPS . 2.6.11 addr nbytes . . BCACHE cache cache. 3 . . : . 6.18 8 2026 cacheflush(2)