diff options
| author | Matteo Croce <teknoraver@meta.com> | 2024-05-14 22:28:19 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-17 23:17:52 +0200 |
| commit | dd465607bc5817819f1e90eb66468e7d9cf9e0b1 (patch) | |
| tree | 27793dd87b81c41627acdbc9a69daa57539b6be9 /man/man5/proc.5 | |
| parent | 6af636f134d82b8d3838074fa6e0dce5efc356a4 (diff) | |
| download | man-pages-dd465607bc5817819f1e90eb66468e7d9cf9e0b1.tar.gz | |
proc.5: Document 'subset' mount option.
The 'subset=pid' option was added in commit 6814ef2d, document it.
This option mounts a procfs where only the numeric directories related
to the PIDs are present.
# mount -t proc proc_pid pid -o subset=pid
# mount |grep -w proc_pid
proc_pid on /tmp/proc/pid type proc (rw,relatime,subset=pid)
# ll -d pid/{1,$$,cmdline,version}
ls: cannot access 'pid/cmdline': No such file or directory
ls: cannot access 'pid/version': No such file or directory
dr-xr-xr-x. 9 root root 0 May 14 09:43 pid/1
dr-xr-xr-x. 9 root root 0 May 14 09:43 pid/25146
The only non-numeric entries in that procfs instance are
'self' and 'thread-self':
# ls pid |grep -vx '[[:digit:]]*'
self
thread-self
#
Cc: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Matteo Croce <teknoraver@meta.com>
Message-ID: <20240514202819.95347-1-technoboy85@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man5/proc.5')
| -rw-r--r-- | man/man5/proc.5 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/man/man5/proc.5 b/man/man5/proc.5 index 8022ca49ee..e15f8b7f54 100644 --- a/man/man5/proc.5 +++ b/man/man5/proc.5 @@ -105,7 +105,13 @@ This group should be used instead of approaches such as putting nonroot users into the .BR sudoers (5) file. -.\" +.RE +.TP +.BR subset = pid " (since Linux 5.8)" +.\" commit 6814ef2d992af09451bbeda4770daa204461329e +Show only the specified subset of procfs, +hiding all top level files and directories in the procfs +that are not related to tasks. .SS Overview Underneath .IR /proc , |
