3 .\" Created: July, 1994 by Philip Homburg <philip@cs.vu.nl>
6 svrctl \- special server control functions
10 #include <sys/svrctl.h>
12 int svrctl(u32_t \fIrequest\fP, void *\fIdata\fP);
17 allows root to control the kernel in various ways, or implements some very
18 MINIX 3 specific system calls that don't deserve their own system call number.
20 This system call makes it easy to add new ways of setting and getting kernel
21 parameters, but at the same time, backwards compatibility is not guaranteed.
22 Read the <sys/svrctl.h> include file to see what the struct's mentioned below
23 look like. Most calls are root-only, unless specified otherwise.
25 The only way to know how to properly use these calls is to study the
26 associated kernel or server code, or the programs that already use these
32 Inform MM that the current process wants to become a server.
35 Instruct MM to mount a file or device as swapspace.
38 Tell MM to stop using swapspace.
41 Register a new device with FS.
45 Translate a device number to a task number, minor device pair using a
50 Inform the kernel that the process want to become a server.
51 The processes task number is filled-in in a \fBstruct systaskinfo\fP.
54 Request the value of one or all boot parameters. Can be used by non-root.
57 returns 0 upon success and -1 upon failure.
59 Philip Homburg <philip@cs.vu.nl>