]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb4c146859d249c957a572a1d1dd41b319af0541
treee0c96611352d760dfa54199e706fc76ce8975871
parentb51386d1209401d21156a86e9fb6871f42839346
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