title: How is /proc/<pid>/cmdline related to the argv variable of a process?
body: <p>When I run a process and the content of argv[0], this also changes the content of /proc//cmdline. Now I checked in the kernel code in fs/proc/cmdline.c, and the cmdline_proc_show function there seems to get its content from the global saved_command_line variable. However I didn't find how saved_command_line is related to the argv array. Does anybody know that?</p>