Query: cachectl
OS: ultrix
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
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)