]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (man) write about PIDFD.* columns
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Sep 2022 17:09:01 +0000 (02:09 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 12 Sep 2022 12:49:01 +0000 (21:49 +0900)
misc-utils/lsfd.1.adoc

index f782b83c21080bb8c7374ba892678f3e2144dba9..20d9e981e59913302917f1f64f88a77c39bf1074 100644 (file)
@@ -217,6 +217,28 @@ Block device name resolved by `/proc/partition`.
 PID <``number``>::
 PID of the process opening the file.
 
+PIDFD.COMM <``string``>::
+Command of the process targeted by the pidfd.
+
+PIDFD.NSPID <``string``>::
+Value of NSpid field in ``/proc/``_pid_``/fdinfo/``_fd_ of the pidfd.
++
+Quoted from kernel/fork.c of Linux source tree:
++
+____
+If pid namespaces are supported then this function will also print
+the pid of a given pidfd refers to for all descendant pid namespaces
+starting from the current pid namespace of the instance, i.e. the
+Pid field and the first entry in the NSpid field will be identical.
+...
+Note that this differs from the Pid and NSpid fields in
+/proc/<pid>/status where Pid and NSpid are always shown relative to
+the  pid namespace of the procfs instance.
+____
+
+PIDFD.PID <``number``>::
+PID of the process targeted by the pidfd.
+
 POS <``number``>::
 File position.