summaryrefslogtreecommitdiffstats
path: root/share/man/man5
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-12-14 21:53:14 +0000
committermpp <mpp@FreeBSD.org>1996-12-14 21:53:14 +0000
commitedd4976ccdf99fe3bd1b3e5bc58eac61c1bd77e4 (patch)
tree8b5c03ccdf77936a4f5ca045da6fd254dca9a92c /share/man/man5
parent3b94b1ad7fd9c708f78a7548030a528bfc88ab69 (diff)
downloadFreeBSD-src-edd4976ccdf99fe3bd1b3e5bc58eac61c1bd77e4.zip
FreeBSD-src-edd4976ccdf99fe3bd1b3e5bc58eac61c1bd77e4.tar.gz
Forgot to document "hostname". Also add some other misc stuff.
Diffstat (limited to 'share/man/man5')
-rw-r--r--share/man/man5/kernfs.515
1 files changed, 13 insertions, 2 deletions
diff --git a/share/man/man5/kernfs.5 b/share/man/man5/kernfs.5
index cff7ea1..8cddc33 100644
--- a/share/man/man5/kernfs.5
+++ b/share/man/man5/kernfs.5
@@ -44,7 +44,13 @@ The kernel file system, or
provides access to information on the currently running kernel.
It is normally mounted on
.Pa /kern .
-The mount point contains several files:
+The file system includes several regular file which can be
+read, and some of which can also be written.
+The contents of the files in in a machine-independent format,
+either a string, or and integer in decial ASCII. A trailing
+newline character is added when a number is returned.
+.Pp
+The mount point contains the following files:
.Bl -tag -width copyright
.It Pa bootfile
The path from which the current kernel was booted.
@@ -52,6 +58,11 @@ The path from which the current kernel was booted.
The time at which the system was last booted (decimal ASCII).
.It Pa copyright
The kernel copyright message.
+.It Pa hostname
+The current hostname, with a trailing newline. The
+current hostname can be changed by writing to this file.
+A trailing newline will be stripped from the hostname being
+wirtten.
.It Pa hz
The frequency of the system clock (decimal ASCII).
.It Pa loadavg
@@ -111,4 +122,4 @@ manual page first appeared in
This manual page was written by Mike Pritchard <mpp@FreeBSD.org>,
and was adapted from the
.Xr mount_kernfs 8
-manual page.
+manual page written by Jan-Simon Pendry.
OpenPOWER on IntegriCloud