From 3b94b1ad7fd9c708f78a7548030a528bfc88ab69 Mon Sep 17 00:00:00 2001 From: mpp Date: Sat, 14 Dec 1996 21:47:11 +0000 Subject: Add a kernfs(5) man page to describe the kernel file system. --- share/man/man5/Makefile | 2 +- share/man/man5/kernfs.5 | 114 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 share/man/man5/kernfs.5 diff --git a/share/man/man5/Makefile b/share/man/man5/Makefile index 589ae91..e2ba2ef 100644 --- a/share/man/man5/Makefile +++ b/share/man/man5/Makefile @@ -2,7 +2,7 @@ #MISSING: dump.5 plot.5 MAN5= a.out.5 acct.5 core.5 dir.5 disktab.5 ethers.5 fs.5 fbtab.5 forward.5 \ - fstab.5 group.5 hosts.5 link.5 networks.5 passwd.5 pbm.5 phones.5 \ + fstab.5 group.5 hosts.5 link.5 kernfs.5 networks.5 passwd.5 pbm.5 phones.5 \ printcap.5 procfs.5 protocols.5 remote.5 resolver.5 services.5 \ shells.5 stab.5 sysconfig.5 types.5 utmp.5 hosts.equiv.5 hosts.lpd.5 MLINKS= fs.5 inode.5 utmp.5 wtmp.5 utmp.5 lastlog.5 dir.5 dirent.5 \ diff --git a/share/man/man5/kernfs.5 b/share/man/man5/kernfs.5 new file mode 100644 index 0000000..cff7ea1 --- /dev/null +++ b/share/man/man5/kernfs.5 @@ -0,0 +1,114 @@ +.\" Copyright (c) 1996 +.\" Mike Pritchard . 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. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by Mike Pritchard. +.\" 4. Neither the name of author nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" 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 14, 1996 +.Dt kernfs 5 +.Os BSD 4.4 +.Sh NAME +.Nm kernfs +.Nd kernel file system +.Sh SYNOPSIS +.Bd -literal +kern /kern kernfs rw 0 0 +.Ed +.Sh DESCRIPTION +The kernel file system, or +.Nm kernfs , +provides access to information on the currently running kernel. +It is normally mounted on +.Pa /kern . +The mount point contains several files: +.Bl -tag -width copyright +.It Pa bootfile +The path from which the current kernel was booted. +.It Pa boottime +The time at which the system was last booted (decimal ASCII). +.It Pa copyright +The kernel copyright message. +.It Pa hz +The frequency of the system clock (decimal ASCII). +.It Pa loadavg +the 1, 5 and 15 minute load averages in kernel fixed-point +format. The final integer is the fix-point scaling factor. +All numbers are in decimal ASCII. +.It Pa pagesize +The machine pagesize (decimal ASCII). +.It Pa physmem +The number of pages of physical memory in the machine (decimal ASCII). +.It Pa root +The system root directory. In a chroot'ed environment, +.Xr mount_kernfs 8 +can be used to create a new +.Pa /kern +mount point. +.Pa /kern/root +will then refer to the system global root, not the current +process root. Not currently enabled.. +.It Pa rootdev +The root device. Not currently enabled. +.It Pa rrootdev +The raw root device. Not currently enabled. +.It Pa time +The second and microsecond values of the system clock (decimal ASCII). +.It Pa version +The kernel version string. The head line for +.Pa /etc/motd +can be generated by running +.Dq Ic "sed 1q /kern/version" +.El +.Pp +Most of the information provided by the +.Nm +is also available from +.Xr sysctl 8 . +.Sh FILES +.Bl -tag -width /kern/XXXXXXX +.It Pa /kern +normal mount point for the +.Nm kernfs . +.El +.Sh SEE ALSO +.Xr sysctl 3 , +.Xr mount_kernfs 8 , +.Xr sysctl 8 +.Sh HISTORY +The +.Nm +first appeared in +.Bx 4.4 . +The +.Nm +manual page first appeared in +.Fx 2.2 . +.Sh AUTHOR +This manual page was written by Mike Pritchard , +and was adapted from the +.Xr mount_kernfs 8 +manual page. -- cgit v1.1