lkml.org 
[lkml]   [2008]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 1/5] pid: Implement ns_of_pid
    Bastian Blank [bastian@waldi.eu.org] wrote:
    | 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?

    Soon after creation but more importantly, after detach_pid()
    (release_task).

    |
    | 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


    \
     
     \ /
      Last update: 2008-12-01 21:27    [W:0.023 / U:1.720 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site