Cachectl Syscall
From LinuxMIPS
Contents |
NAME
cachectl - control cachebility of memory areas
SYNOPSIS
#include <sys/cachectl.h>
int cachectl (void *addr, size_t nbytes, int op);
DESCRIPTION
The cachectl syscall allows a process to control cachebility of it's address space at page granularity. Cachability is initially choosen by a heuristc at mmap mmap time. The op parameter may be one of:
- CACHEABLE
- Make the indicated area cacheable
- UNCACHEABLE
- Make the indicated area uncacheable
HISTORY
A cachectl syscall appeared in RISC/OS and later in IRIX. It differs in taking an int for the nbytes argument.
BUGS
Even though the syscall is part of the kernel's syscall interface since the earliest days of Linux it has never actually been implemented since the defaults used by mmap seem to work sufficiently well.