cachectl.2

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 75 行

2
75
字号
.TH cachectl 2 RISC.UC 4.SH Namecachectl \- mark pages cacheable or uncacheable.SH Syntax.ft B.nf#include <mips/cachectl.h>.spcachectl(addr, nbytes, op)char *addr;int nbytes, op;.fi.ft R.SH DescriptionThe.PN cachectlsystem call allows a process to makeranges of its address space cacheable or uncacheable.Initially, a process's entire address space is cacheable..PPThe .I opparameter is one of the following:.TP 20CACHEABLEMake the indicated pages cacheable..TP 20UNCACHEABLEMake the indicated pages uncacheable..PPThe arguments CACHEABLE and UNCACHEABLE affect the address rangeindicated by the.I addrand.IR nbytesparameters.The.I addrmust be page aligned, and.I nbytesmust be a multiple of the page size..PPChanging a page from UNCACHEABLE state to CACHEABLEstate causes both the instruction and data caches to be flushed. .SH Return ValuesThe.PN cachectlsystem call returns 0 on success. If errors are detected, the.PN cachectlsystem call returns \-1 with the error cause indicated in.IR errno..SH Diagnostics.TP 15[EFAULT]Some or all of the address range.I addrto.RI ( addr + nbytes \-1)are not accessible..TP 15[EINVAL]The.I opparameter is not CACHEABLE or UNCACHEABLE. .TP 15[EINVAL]The .I addrparameter is not page aligned,or the.I nbytesparameter is not a multiple of pagesize.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?