[Wylug-discuss] The talk on processes from last night....

Jim Jackson jj at franjam.org.uk
Wed Mar 15 18:02:53 GMT 2006



> One interesting and little known fact not mentioned is that in
> addition to PID 1 (init), there's also a mysterious PID 0 (swapper),
> which is hidden in the ps output (and /proc).  This is the first task
> on the system, and it is the secret parent of PID 1 (init).  It is, in
> effect, the PID of the kernel task itself.

Hi Roger,

Yes, I mentioned this in the talk, but hadn't committed it to "paper".
You see it when displaying ppid in ps listings - it shows it as the parent
of init as you say.

> See include/linux/init_task.h (INIT_TASK) for more details.
> and arch/powerpc/kernel/init_task.c, for example usage.

Jim




More information about the Wylug-discuss mailing list