task free entries

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

 



Hi all,

I have a simple question regarding process creation:

I understand that all task descriptors are stored in hash (pidhash) so
that fast lookups can be performed given a pid. 

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.

tia
anupam

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux