[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: task free entries



On Tue, Aug 13, 2002 at 10:53:50PM -0700, Anupam Kapoor wrote:
> Hi all,

[snip]

> 
> When a new process is created, how is the pid for the new process 
> determined ? I would assume that a separate free list is used to
> quickly perform a lookup. Is this true ?
> 
> I have looked at sched.h (task_struct) but cannot find the relevant
> code. Any pointers/clarifications would be greatly appreciated.

The relevant function is kernel/fork.c:get_pid

Marco
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/