source: trunk/minix/man/man2/svrctl.2@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.6 KB
RevLine 
[9]1.\" svrctl.2
2.\"
3.\" Created: July, 1994 by Philip Homburg <philip@cs.vu.nl>
4.TH svrctl 2
5.SH NAME
6svrctl \- special server control functions
7.SH SYNOPSIS
8.nf
9.ft B
10#include <sys/svrctl.h>
11
12int svrctl(u32_t \fIrequest\fP, void *\fIdata\fP);
13.ft R
14.fi
15.SH DESCRIPTION
16.B Svrctl
17allows root to control the kernel in various ways, or implements some very
18MINIX 3 specific system calls that don't deserve their own system call number.
19.PP
20This system call makes it easy to add new ways of setting and getting kernel
21parameters, but at the same time, backwards compatibility is not guaranteed.
22Read the <sys/svrctl.h> include file to see what the struct's mentioned below
23look like. Most calls are root-only, unless specified otherwise.
24.PP
25The only way to know how to properly use these calls is to study the
26associated kernel or server code, or the programs that already use these
27calls.
28.PP
29Current requests are:
30.TP 5
31.B MMSIGNON
32Inform MM that the current process wants to become a server.
33.TP
34.B MMSWAPON
35Instruct MM to mount a file or device as swapspace.
36.TP
37.B MMSWAPOFF
38Tell MM to stop using swapspace.
39.TP
40.B FSSIGNON
41Register a new device with FS.
42.ig
43.TP
44.B FSDEVMAP
45Translate a device number to a task number, minor device pair using a
46\fBstruct fsdevmap\fP
47..
48.TP
49.B SYSSIGNON
50Inform the kernel that the process want to become a server.
51The processes task number is filled-in in a \fBstruct systaskinfo\fP.
52.TP
53.B SYSGETENV
54Request the value of one or all boot parameters. Can be used by non-root.
55.SH "RETURN VALUES"
56.B Svrctl
57returns 0 upon success and -1 upon failure.
58.SH AUTHOR
59Philip Homburg <philip@cs.vu.nl>
Note: See TracBrowser for help on using the repository browser.