cachectl(2) System Calls Manual cachectl(2)Name
cachectl - mark pages cacheable or uncacheable
Syntax
#include <mips/cachectl.h>
cachectl(addr, nbytes, op)
char *addr;
int nbytes, op;
Description
The system call allows a process to make ranges of its address space cacheable or uncacheable. Initially, a process's entire address space
is cacheable.
The op parameter is one of the following:
CACHEABLE Make the indicated pages cacheable.
UNCACHEABLE Make the indicated pages uncacheable.
The arguments CACHEABLE and UNCACHEABLE affect the address range indicated by the addr and nbytes parameters. The addr must be page
aligned, and nbytes must be a multiple of the page size.
Changing a page from UNCACHEABLE state to CACHEABLE state causes both the instruction and data caches to be flushed.
Return Values
The system call returns 0 on success. If errors are detected, the system call returns -1 with the error cause indicated in errno.
Diagnostics
[EFAULT] Some or all of the address range addr to (addr+nbytes-1) are not accessible.
[EINVAL] The op parameter is not CACHEABLE or UNCACHEABLE.
[EINVAL] The addr parameter is not page aligned, or the nbytes parameter is not a multiple of pagesize.
4th Berkeley Distribution RISC cachectl(2)
Check Out this Related Man Page
CACHEFLUSH(2) Linux Programmer's Manual CACHEFLUSH(2)NAME
cacheflush - flush contents of instruction and/or data cache
SYNOPSIS
#include <asm/cachectl.h>
int cacheflush(char *addr, int nbytes, int cache);
DESCRIPTION
cacheflush() flushes the contents of the indicated cache(s) for the 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
cacheflush() returns 0 on success or -1 on error. If errors are detected, errno will indicate the error.
ERRORS
EFAULT Some or all of the address range addr to (addr+nbytes-1) is not accessible.
EINVAL cache is not one of ICACHE, DCACHE, or BCACHE.
CONFORMING TO
This Linux-specific system call is available only on MIPS-based systems. It should not be used in programs intended to be portable.
BUGS
The current implementation ignores the addr and nbytes arguments. Therefore, the whole cache is always flushed.
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2007-05-26 CACHEFLUSH(2)
<h1>A short history of UNIX</h1>
<p>In the late 1960's Ken Thompsom joined the computing-science research group at Bell
Laboratories, which is the research arm of the giant American corporation ATT. He and many
colleagues had been collaborating with MIT and GE on the development of an... (0 Replies)
We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
I'm learning off Linux (Ubuntu) right now. I want to move up to Unix, but I don't want to rush like I did when it came to Windows --> to Linux. What is the best Unix OS that fits in pretty well with Ubuntu.
In other words is there kind of an equal Linux with Unix?
Also what do I need to... (10 Replies)
I noticed my hostname is <my-full-name>s-macbook.local. I'm not sure exactly what information leaves the local network, and whether the hostname is included, but if it is, this would mean people on the Internet can look at my hostname and see who I am. Before anyone says that's not possible,... (4 Replies)