Re: [PATCH 5/7] pid: Implement pid_nr

From: Dave Hansen
Date: Tue Aug 15 2006 - 14:35:36 EST


On Tue, 2006-08-15 at 12:23 -0600, Eric W. Biederman wrote:
> +static inline pid_t pid_nr(struct pid *pid)
> +{
> + pid_t nr = 0;
> + if (pid)
> + nr = pid->nr;
> + return nr;
> +}

When is it valid to be passing around a NULL 'struct pid *'?

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/