2005-05-02 15:01:42 +02:00
|
|
|
.\" svrctl.2
|
|
|
|
.\"
|
|
|
|
.\" Created: July, 1994 by Philip Homburg <philip@cs.vu.nl>
|
|
|
|
.TH svrctl 2
|
|
|
|
.SH NAME
|
|
|
|
svrctl \- 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 Svrctl
|
2010-01-05 20:39:27 +01:00
|
|
|
implements some very MINIX 3 specific system calls that don't deserve their own
|
|
|
|
system call number.
|
2005-05-02 15:01:42 +02:00
|
|
|
.PP
|
2010-01-05 20:39:27 +01:00
|
|
|
This system call makes it easy to add new ways of setting and getting system
|
2005-05-02 15:01:42 +02:00
|
|
|
parameters, but at the same time, backwards compatibility is not guaranteed.
|
2010-01-05 20:39:27 +01:00
|
|
|
Read the <sys/svrctl.h> include file to see what the structures mentioned below
|
2005-05-02 15:01:42 +02:00
|
|
|
look like. Most calls are root-only, unless specified otherwise.
|
|
|
|
.PP
|
|
|
|
The only way to know how to properly use these calls is to study the
|
2010-01-05 20:39:27 +01:00
|
|
|
associated server code, or the programs that already use these
|
2005-05-02 15:01:42 +02:00
|
|
|
calls.
|
|
|
|
.PP
|
|
|
|
Current requests are:
|
|
|
|
.TP 5
|
2010-01-05 20:39:27 +01:00
|
|
|
.B MMGETPARAM
|
|
|
|
Request the value of one or all boot parameters. Can be used by non-root.
|
2005-05-02 15:01:42 +02:00
|
|
|
.TP
|
2010-01-05 20:39:27 +01:00
|
|
|
.B MMSETPARAM
|
|
|
|
Set an override for a value of a boot parameter. Can be used by non-root.
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH "RETURN VALUES"
|
|
|
|
.B Svrctl
|
|
|
|
returns 0 upon success and -1 upon failure.
|
|
|
|
.SH AUTHOR
|
|
|
|
Philip Homburg <philip@cs.vu.nl>
|