xref: /netbsd-src/sys/rump/README.dirs (revision 11242055705539f2a24b4956e6546d7c2268b837)
1	$NetBSD: README.dirs,v 1.12 2013/01/08 13:12:26 pooka Exp $
2
3
4The following is a quick rundown of the current directory structure.
5First, components in the kernel namespace, i.e. compiled with -D_KERNEL
6
7sys/rump/librump - rump kernel base and factions
8  /rumpkern	- kernel core, e.g. syscall, interrupt and lock support
9
10  /rumpdev	- device support, e.g. autoconf subsystem
11  /rumpnet	- networking support and sockets layer
12  /rumpvfs	- file system support
13
14sys/rump/include
15  /machine - used for architectures where the rump kernel ABI is not yet the
16	     same as the kernel module ABI.  will eventually disappear
17	     completely
18  /rump    - kernel headers installed to userspace
19
20sys/rump/dev - device components, e.g. audio, raidframe, usb drivers
21
22sys/rump/fs - file system components
23  /lib/lib${fs}  - kernel file system code
24
25sys/rump/net - networking components
26  /lib/libnet	  - subroutines from sys/net, e.g. route and if_ethersubr
27  /lib/libnetinet - TCP/IP
28  /lib/libvirtif  - a virtual interface which uses host tap(4) to shovel
29		    packets.  This is used by netinet and if_ethersubr.
30  /lib/libshmif   - a virtual interface which uses a memory mapped file
31		    as an ethernet bus.  works completely unprivileged.
32  /lib/libsockin  - implements PF_INET using host kernel sockets.  This is
33		    mutually exclusive with net, netinet and virtif.
34
35
36
37The rest are out-of-kernel components (i.e. no -D_KERNEL).
38
39hypercall interface:
40src/lib/librumpuser
41  The "rumpuser" hypercall interfaces are used by a rump kernel to
42  access host resources.
43
44remote client interface:
45src/lib/librumpclient
46  The rumpclient library provides remote access to rump kernel servers.
47
48system call hijacking:
49src/lib/librumphijack
50  The rumphijack library allows intercepting system calls and redirecting
51  them to a rump kernel server instead of the host kernel.  In other
52  words, it allows existing binaries to request indicated services from
53  a rump kernel instead of from the host kernel.
54
55Users:
56src/lib
57  /libp2k  - puffs-to-vfs adaption layer, userspace namespace
58  /libukfs - user kernel file system, a library to access file system
59	     images (or devices) directly in userspace without going
60	     through a system call and puffs.  It provides a slightly
61	     higher interface than syscalls.
62
63src/usr.sbin/puffs
64  rump_$fs - userspace file system daemons using the kernel fs code
65
66src/share/examples/rump
67  Various examples detailing use of rump kernels in different scenarios.
68  These are provided source-only.
69