lkml.org 
[lkml]   [2009]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] pids: refactor vnr/nr_ns helpers to make them safe
On Fri, 16 Jan 2009 06:55:20 +0100
Oleg Nesterov <oleg@redhat.com> wrote:

> --- CUR/include/linux/sched.h~SP_3_NR 2009-01-16 02:13:50.000000000 +0100
> +++ CUR/include/linux/sched.h 2009-01-16 04:16:12.000000000 +0100
> @@ -1481,17 +1481,23 @@ struct pid_namespace;
> *
> * see also pid_nr() etc in include/linux/pid.h
> */
> +pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type,
> + struct pid_namespace *ns);

Sometime it would be nice to pull all the pid-related helpers out of
sched.h, into a dedicated header file which is included only by those
.c files which actually use them.



\
 
 \ /
  Last update: 2009-01-16 23:25    [W:0.073 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site