2 .\" Mike Pritchard <mpp@FreeBSD.org>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by Mike Pritchard.
15 .\" 4. Neither the name of author nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 .Nd kernel file system
41 kern /kern kernfs rw 0 0
44 The kernel file system, or
46 provides access to information on the currently running kernel.
47 It is normally mounted on
49 The file system includes several regular files which can be
50 read, and some of which can also be written.
51 The contents of the files are in a machine-independent format,
52 either a string or an integer in decimal ASCII. A trailing
53 newline character is added when a number is returned.
55 The mount point contains the following files:
56 .Bl -tag -width copyright
58 The path from which the current kernel was booted.
60 The time at which the system was last booted (decimal ASCII).
62 The kernel copyright message.
64 The current hostname, with a trailing newline. The
65 current hostname can be changed by writing to this file.
66 A trailing newline will be stripped from the hostname being
69 The frequency of the system clock (decimal ASCII).
71 The 1, 5 and 15 minute load averages in kernel fixed-point
72 format. The final integer is the fix-point scaling factor.
73 All numbers are in decimal ASCII.
75 The machine pagesize (decimal ASCII).
77 The number of pages of physical memory in the machine (decimal ASCII).
79 The system root directory. In a chroot'ed environment,
81 can be used to create a new
85 will then refer to the system global root, not the current
86 process root. Not currently enabled.
88 The root device. Not currently enabled.
90 The raw root device. Not currently enabled.
92 The second and microsecond values of the system clock (decimal ASCII).
94 The kernel version string. The head line for
96 can be generated by running
97 .Dq Ic "sed 1q /kern/version"
100 Most of the information provided by the
102 is also available from
105 .Bl -tag -width /kern/XXXXXXX
107 normal mount point for the
121 manual page first appeared in
124 This manual page was written by
125 .An Mike Pritchard Aq mpp@FreeBSD.org ,
126 and was adapted from the
128 manual page written by
129 .An Jan-Simon Pendry .