[prev in list] [next in list] [prev in thread] [next in thread]
List: openvz-devel
Subject: [Devel] Re: [RFC][PATCH 1/5] pid: Implement ns_of_pid
From: bastian () waldi ! eu ! org (Bastian Blank)
Date: 2008-11-27 1:19:10
Message-ID: 20081127011910.GD13545 () wavehammer ! waldi ! eu ! org
[Download RAW message or body]
On Tue, Nov 25, 2008 at 07:44:42PM -0800, Sukadev Bhattiprolu wrote:
> +/* ns_of_pid returns the pid namespace in which the specified
> + * pid was allocated.
> + */
> +static inline struct pid_namespace *ns_of_pid(struct pid *pid)
> +{
> + struct pid_namespace *ns = NULL;
> + if (pid)
> + ns = pid->numbers[pid->level].ns;
> + return ns;
> +}
> +
When can the pid argument be null?
Bastian
--
Another Armenia, Belgium ... the weak innocents who always seem to be
located on a natural invasion route.
-- Kirk, "Errand of Mercy", stardate 3198.4
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic