Describe the rump_sp facility a bit.
This commit is contained in:
parent
120c01c6d1
commit
02d25938f6
@ -1,10 +1,10 @@
|
||||
# $NetBSD: Makefile,v 1.3 2010/09/02 12:29:49 pooka Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2010/12/16 15:29:28 pooka Exp $
|
||||
#
|
||||
|
||||
RUMPTOP= ${.CURDIR}/../../sys/rump
|
||||
|
||||
LIBDPLIBS+= rumpuser ${.CURDIR}/../librumpuser
|
||||
MAN= rump.3 rump_lwproc.3
|
||||
MAN= rump.3 rump_lwproc.3 rump_sp.7
|
||||
|
||||
WARNS= 3 # XXX: kernel isn't ready for -Wsign-compare
|
||||
|
||||
|
95
lib/librump/rump_sp.7
Normal file
95
lib/librump/rump_sp.7
Normal file
@ -0,0 +1,95 @@
|
||||
.\" $NetBSD: rump_sp.7,v 1.1 2010/12/16 15:29:28 pooka Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2010 Antti Kantee. All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd December 16, 2010
|
||||
.Dt RUMP_SP 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm rump_sp
|
||||
.Nd rump remote system call support
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
facility allows clients to attach to a rump kernel server over a
|
||||
socket and perform system calls.
|
||||
While making a local rump system call is faster than calling the
|
||||
host kernel, a remote system call over a socket is slower.
|
||||
This facility is therefore meant mostly for operations which are
|
||||
not performance critical, such as configuration of a rump kernel
|
||||
server.
|
||||
.Ss Clients
|
||||
The
|
||||
.Nx
|
||||
base system comes with multiple preinstalled clients which can be
|
||||
used to configure a rump kernel and request diagnostic information.
|
||||
These clients run as hybrids partially in the host system and
|
||||
partially against the rump kernel.
|
||||
For example, network-related clients will typically avoid making
|
||||
any file system related system calls against the rump kernel, since
|
||||
it is not guaranteed that a rump network server has file system
|
||||
support.
|
||||
Another example is DNS: since a rump server very rarely has a DNS
|
||||
service configured, host networking used to do DNS lookups.
|
||||
.Pp
|
||||
Some examples of clients include
|
||||
.Nm rump.ifconfig
|
||||
which configures interfaces,
|
||||
.Nm rump.sysctl
|
||||
which is used to access the
|
||||
.Xr sysctl 7
|
||||
namespace
|
||||
and
|
||||
.Nm rump.traceroute
|
||||
which is used to display a network trace starting from the rump kernel.
|
||||
.Ss Connecting to the server
|
||||
A remote rump server is specified using an URL.
|
||||
Currently two types of URLs are supported: TCP and local domain sockets.
|
||||
The TCP URL is of the format tcp://ip.address:port/ and the local
|
||||
domain URL is unix://path.
|
||||
The latter can accept relative or absolute paths.
|
||||
Note that absolute paths require three leading slashes.
|
||||
.Pp
|
||||
To preserve the standard usage of the rump clients' counterparts
|
||||
the environment variable
|
||||
.Ev RUMP_SERVER
|
||||
is used to specify the server URL.
|
||||
To keep track of which rump kernel the current shell is using,
|
||||
modifying the shell prompt is recommended -- this is analoguous
|
||||
to the visual clue you have when you login from one machine to
|
||||
another.
|
||||
.Sh EXAMPLES
|
||||
Get a list of file systems supported by a rump kernel server
|
||||
(in case that particular server does not support file systems,
|
||||
an error will be returned):
|
||||
.Bd -literal -offset indent
|
||||
$ env RUMP_SERVER=unix://sock rump.sysctl vfs.generic.fstypes
|
||||
.Ed
|
||||
.Sh SEE ALSO
|
||||
.Xr rump_server 1 ,
|
||||
.Xr rump 3
|
||||
.Sh HISTORY
|
||||
.Nm
|
||||
first appeared in
|
||||
.Nx 6.0 .
|
Loading…
Reference in New Issue
Block a user