>> +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 *'? Is 0 even the right thing to return in the rare case that pid == NULL? -1 maybe? Jan Engelhardt --