From: Pavel Emelyanov Date: Fri, 19 Oct 2007 06:40:06 +0000 (-0700) Subject: pid namespaces: helpers to obtain pid numbers X-Git-Tag: v2.6.24-rc1~219 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af5729474b5b8ad385adadab78d6e723e7655a3;p=pandora-kernel.git pid namespaces: helpers to obtain pid numbers When showing pid to user or getting the pid numerical id for in-kernel use the value of this id may differ depending on the namespace. This set of helpers is used to get the global pid nr, the virtual (i.e. seen by task in its namespace) nr and the nr as it is seen from the specified namespace. Signed-off-by: Pavel Emelyanov Cc: Oleg Nesterov Cc: Sukadev Bhattiprolu Cc: Paul Menage Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed