2000-03-25 14:03:31 +00:00
|
|
|
.\" $FreeBSD$
|
|
|
|
.\" Written by Garrett Wollman
|
|
|
|
.\" This file is in the public domain.
|
|
|
|
.\"
|
|
|
|
.Dd August 10, 1994
|
|
|
|
.Dt LINPROCFS 5
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
2000-03-25 14:03:31 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm linprocfs
|
2002-12-12 17:26:04 +00:00
|
|
|
.Nd Linux process file system
|
2000-03-25 14:03:31 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Bd -literal
|
|
|
|
linproc /compat/linux/proc linprocfs rw 0 0
|
|
|
|
.Ed
|
|
|
|
.Sh DESCRIPTION
|
2002-12-12 17:26:04 +00:00
|
|
|
The Linux process file system, or
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm ,
|
2002-12-12 17:26:04 +00:00
|
|
|
emulates a subset of Linux' process file system and is required for
|
2000-03-25 14:03:31 +00:00
|
|
|
the complete operation of some Linux binaries.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
provides a two-level view of process space.
|
|
|
|
At the highest level, processes themselves are named, according to
|
2003-07-03 06:07:26 +00:00
|
|
|
their process ids in decimal, with no leading zeros.
|
|
|
|
There is also a special node called
|
2000-03-25 14:03:31 +00:00
|
|
|
.Pa self
|
|
|
|
which always refers to the process making the lookup request.
|
|
|
|
.Pp
|
2003-07-03 06:07:26 +00:00
|
|
|
Each node is a directory containing several files:
|
2000-03-25 14:03:31 +00:00
|
|
|
.Bl -tag -width status
|
|
|
|
.It Pa exe
|
|
|
|
A reference to the vnode from which the process text was read.
|
|
|
|
This can be used to gain access to the process' symbol table,
|
|
|
|
or to start another copy of the process.
|
|
|
|
.It Pa mem
|
|
|
|
The complete virtual memory image of the process.
|
|
|
|
Only those addresses which exist in the process can be accessed.
|
|
|
|
Reads and writes to this file modify the process.
|
|
|
|
Writes to the text segment remain private to the process.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Each node is owned by the process's user, and belongs to that user's
|
|
|
|
primary group, except for the
|
|
|
|
.Pa mem
|
|
|
|
node, which belongs to the
|
|
|
|
.Li kmem
|
|
|
|
group.
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /compat/linux/proc/self/XXXXXXX -compact
|
|
|
|
.It Pa /compat/linux/proc
|
2003-07-03 06:07:26 +00:00
|
|
|
The normal mount point for the
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm .
|
2000-03-25 14:03:31 +00:00
|
|
|
.It Pa /compat/linux/proc/cpuinfo
|
|
|
|
CPU vendor and model information in human-readable form.
|
|
|
|
.It Pa /compat/linux/proc/meminfo
|
|
|
|
System memory information in human-readable form.
|
|
|
|
.It Pa /compat/linux/proc/pid
|
2003-07-03 06:07:26 +00:00
|
|
|
A directory containing process information for process
|
2000-03-25 14:03:31 +00:00
|
|
|
.Pa pid .
|
|
|
|
.It Pa /compat/linux/proc/self
|
2003-07-03 06:07:26 +00:00
|
|
|
A directory containing process information for the current process.
|
2000-03-25 14:03:31 +00:00
|
|
|
.It Pa /compat/linux/proc/self/exe
|
2003-07-03 06:07:26 +00:00
|
|
|
The executable image for the current process.
|
2000-03-26 12:20:35 +00:00
|
|
|
.It Pa /compat/linux/proc/self/mem
|
2003-07-03 06:07:26 +00:00
|
|
|
The complete virtual address space of the current process.
|
2000-03-25 14:03:31 +00:00
|
|
|
.El
|
2006-05-19 00:22:45 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
To mount a
|
|
|
|
.Nm
|
|
|
|
file system on
|
|
|
|
.Pa /compat/linux/proc :
|
|
|
|
.Pp
|
|
|
|
.Dl "mount -t linprocfs linproc /compat/linux/proc"
|
2000-03-25 14:03:31 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mount 2 ,
|
|
|
|
.Xr unmount 2 ,
|
|
|
|
.Xr procfs 5 ,
|
2001-12-08 16:43:24 +00:00
|
|
|
.Xr pseudofs 9
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
first appeared in
|
|
|
|
.Fx 4.0 .
|
2000-03-25 14:03:31 +00:00
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
2000-03-25 14:03:31 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
was derived from
|
|
|
|
.Nm procfs
|
|
|
|
by
|
|
|
|
.An Pierre Beyssac .
|
|
|
|
This manual page was written by
|
2000-11-14 13:19:26 +00:00
|
|
|
.An Dag-Erling Sm\(/orgrav ,
|
2000-03-25 14:03:31 +00:00
|
|
|
based on the
|
|
|
|
.Xr procfs 5
|
|
|
|
manual page by
|
|
|
|
.An Garrett Wollman .
|