proc(5): /proc/[number]/cmdline explanation update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It used to be true that the command line arguments were not accessible
when the process had been swapped out. In ancient kernels (circa 2.0.*)
the problem was that the kernel relied on get_phys_addr to access the
user space buffer, which stopped working as soon as the process was
swapped out. Recent kernels use get_user_pages for the same purpose and
thus they should not have that limitation.

Signed-off-by: Fernando Luis Vazquez Cao <fernando@xxxxxxxxxxxxx>
---

--- proc.5.orig	2008-02-06 14:11:58.000000000 +0900
+++ proc.5	2008-02-06 14:56:22.000000000 +0900
@@ -87,12 +87,11 @@ plus one \fIunsigned long\fP value for e
 The last entry contains two zeros.
 .TP
 .I /proc/[number]/cmdline
-This holds the complete command line for the process, unless the whole
-process has been swapped out or the process is a zombie.
-In either of these latter cases, there is nothing in this file:
-that is, a read on this file will return 0 characters.
-The command line arguments appear in this file as a set of
-null-separated strings, with a further null byte after the last string.
+This holds the complete command line for the process, unless the process is a
+zombie. In the latter case, there is nothing in this file: that is, a read on
+this file will return 0 characters. The command line arguments appear in this
+file as a set of null-separated strings, with a further null byte after the
+last string.
 .TP
 .I /proc/[number]/cwd
 This is a symbolic link to the current working directory of the process.


-
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux