doc: bring the namespaces up to date with linux kernel

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2022-05-05 00:00:00 -05:00 committed by Craig Small
parent 644a6e055c
commit 6e78355d4d
3 changed files with 24 additions and 0 deletions

View File

@ -120,10 +120,12 @@ Those inodes will appear in the order proscribed by enum namespace_type.
.RS 4 .RS 4
.nf .nf
enum namespace_type { enum namespace_type {
PROCPS_NS_CGROUP,
PROCPS_NS_IPC, PROCPS_NS_IPC,
PROCPS_NS_MNT, PROCPS_NS_MNT,
PROCPS_NS_NET, PROCPS_NS_NET,
PROCPS_NS_PID, PROCPS_NS_PID,
PROCPS_NS_TIME,
PROCPS_NS_USER, PROCPS_NS_USER,
PROCPS_NS_UTS PROCPS_NS_UTS
}; };

12
ps/ps.1
View File

@ -1105,6 +1105,12 @@ cgroup CGROUP T{
display control groups to which the process belongs. display control groups to which the process belongs.
T} T}
cgroupns CGROUPNS T{
Unique inode number describing the namespace the process belongs to.
See
.IR namespaces (7).
T}
class CLS T{ class CLS T{
scheduling class of the process. (alias scheduling class of the process. (alias
.BR policy , \ cls ). .BR policy , \ cls ).
@ -1814,6 +1820,12 @@ cumulative CPU\ time, "[DD\-]HH:MM:SS" format. (alias
.BR cputime ). .BR cputime ).
T} T}
timens TIMENS T{
Unique inode number describing the namespace the process belongs to.
See
.IR namespaces (7).
T}
times TIME T{ times TIME T{
cumulative CPU\ time in seconds (alias cumulative CPU\ time in seconds (alias
.BR cputimes ). .BR cputimes ).

View File

@ -1158,6 +1158,11 @@ page available.
\fBnTH \*(Em Number of Threads \fR \fBnTH \*(Em Number of Threads \fR
The number of threads associated with a process. The number of threads associated with a process.
.TP 4
\fBnsCGROUP \*(Em CGROUP namespace \fR
The Inode of the namespace used to hide the identity of the control group of
which process is a member.
.TP 4 .TP 4
\fBnsIPC \*(Em IPC namespace \fR \fBnsIPC \*(Em IPC namespace \fR
The Inode of the namespace used to isolate interprocess communication (IPC) The Inode of the namespace used to isolate interprocess communication (IPC)
@ -1180,6 +1185,11 @@ meaning they need not remain unique.
Thus, each such namespace could have its own `init/systemd' (PID #1) to Thus, each such namespace could have its own `init/systemd' (PID #1) to
manage various initialization tasks and reap orphaned child processes. manage various initialization tasks and reap orphaned child processes.
.TP 4
\fBnsTIME \*(Em TIME namespace \fR
The Inode of the namespace which allows processes to see different system
times in a way similar to the UTS namespace.
.TP 4 .TP 4
\fBnsUSER \*(Em USER namespace \fR \fBnsUSER \*(Em USER namespace \fR
The Inode of the namespace used to isolate the user and group ID numbers. The Inode of the namespace used to isolate the user and group ID numbers.