2005-02-25 22:26:02

by Josef E. Galea

[permalink] [raw]
Subject: init process and task_struct

Hi,

Does the init process have a task_struct associated with it, and if yes
where is this structure created?

Thanks
Josef


2005-02-25 22:39:19

by Robert Love

[permalink] [raw]
Subject: Re: init process and task_struct

On Fri, 2005-02-25 at 23:26 +0100, Josef E. Galea wrote:

> Does the init process have a task_struct associated with it, and if yes
> where is this structure created?

Of course.

Stored directly in init_task, declared in <linux/sched.h>, defined in
arch-specific code (arch/i386/kernel/init_task.c on x86).

Robert Love