svrctl.2
来自「minix操作系统最新版本(3.1.1)的源代码」· 2 代码 · 共 60 行
2
60 行
.\" svrctl.2.\".\" Created: July, 1994 by Philip Homburg <philip@cs.vu.nl>.TH svrctl 2.SH NAMEsvrctl \- special server control functions.SH SYNOPSIS.nf.ft B#include <sys/svrctl.h>int svrctl(u32_t \fIrequest\fP, void *\fIdata\fP);.ft R.fi.SH DESCRIPTION.B Svrctlallows root to control the kernel in various ways, or implements some veryMINIX 3 specific system calls that don't deserve their own system call number..PPThis system call makes it easy to add new ways of setting and getting kernelparameters, but at the same time, backwards compatibility is not guaranteed.Read the <sys/svrctl.h> include file to see what the struct's mentioned belowlook like. Most calls are root-only, unless specified otherwise..PPThe only way to know how to properly use these calls is to study theassociated kernel or server code, or the programs that already use thesecalls..PPCurrent requests are:.TP 5.B MMSIGNONInform MM that the current process wants to become a server..TP.B MMSWAPONInstruct MM to mount a file or device as swapspace..TP.B MMSWAPOFFTell MM to stop using swapspace..TP.B FSSIGNONRegister a new device with FS..ig.TP.B FSDEVMAPTranslate a device number to a task number, minor device pair using a\fBstruct fsdevmap\fP...TP.B SYSSIGNONInform the kernel that the process want to become a server.The processes task number is filled-in in a \fBstruct systaskinfo\fP..TP.B SYSGETENVRequest the value of one or all boot parameters. Can be used by non-root..SH "RETURN VALUES".B Svrctlreturns 0 upon success and -1 upon failure..SH AUTHORPhilip Homburg <philip@cs.vu.nl>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?