mount_procfs.8 revision 1.1
1.Dd August 24, 1993
2.Dt MOUNT_PROCFS 8
3.Os NetBSD 0.8a
4.Sh NAME
5.Nm mount_procfs
6.Nd mount the proc file system
7.Sh SYNOPSIS
8.Nm mount_procfs
9.Op Fl F Ar fsoptions
10.Pa procfs
11.Pa mount_point
12.Sh DESCRIPTION
13The
14.Nm mount_procfs
15command attaches an instance of the proc filesystem
16to the global filesystem namespace.
17The conventional mount point is
18.Pa /proc .
19This command is normally executed by
20.Xr mount 8
21at boot time.
22.Pp
23The proc filesystem presents a directory entry for each process in the system.
24The name of an entry is process id in decimal notation.
25Opening an entry for reading and/or writing gives access to the process
26address space. Several ioctl(2) operations are available to gain additional
27control over the process.
28.Sh FILES
29.Sh SEE ALSO
30.Xr mount 2 ,
31.Xr unmount 2 ,
32.Xr fstab 5
33.Sh CAVEATS
34This filesystem may not be NFS-exported.
35The interface and implementation of the proc filesystem are still under
36development.
37.Sh HISTORY
38The
39.Nm mount_procfs
40utility first appeared in NetBSD 0.9.
41em clock (decimal ASCII).
42.It Pa loadavg
43the 1, 5 and 15 minute load average in kernel fixed-point format.
44The final integer is the fix-point scaling factor.
45All numbers are in decimal ASCII.
46.It Pa physmem
47the number of pages of physical memory in the machine (decimal ASCII).
48.It Pa root
49the system root directory.
50In a chroot'ed environment,
51.Nm
52can be used to create a new
53.Pa kernfs
54mount point.
55.Pa /kern/root
56will then refer to the system global root, not the current process root.
57.It Pa rootdev
58the root device.
59.It Pa rrootdev
60the raw root device.
61.It Pa time
62the second and microsecond value of the system clock.
63Both numbers are in decimal ASCII.
64.It Pa version
65the kernel version string.
66The head line for
67.Pa /etc/motd
68can be generated by running:
69.Dq Ic "sed 1q /kern/version"
70.El
71.Sh SEE ALSO
72.Xr mount 2 ,
73.Xr unmount 2 ,
74.Xr fstab 5
75.Sh CAVEATS
76This filesystem may not be NFS-exported.
77.Sh HISTORY
78The
79.Nm mount_kernfs
80utility first appeared in NetBSD 0.8a.
81