proc: export a processes resource limits via /proc/pid
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 19 Oct 2007 06:40:37 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:42 +0000 (11:53 -0700)
commitd85f50d5e1aa99ab082035f94265847521819e58
treee0c96611352d760dfa54199e706fc76ce8975871
parent14ed9d23aa9acd79210a92ac561a728b42a8e281
proc: export a processes resource limits via /proc/pid

Currently, there exists no method for a process to query the resource
limits of another process.  They can be inferred via some mechanisms but
they cannot be explicitly determined.  Given that this information can be
usefull to know during the debugging of an application, I've written this
patch which exports all of a processes limits via /proc/<pid>/limits.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c