Re: /proc/0

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

 




> Hi everybody!
> 
> 	A simple question: I don't have an entry for the kernel 
> idle thread (PID=0) under /proc (i.e. /proc/0 doesn't 
> exists). Is it normal?. Why?. Doesn't the kernel idle 
> thread have a normal process entry?. 

 The for_each_task() macro starts at init task (PID 1) and goes through

all processes in the circular linked list. PID 0 ('swapper' process) is
not on this list. Since for_each_task is used to create/display the 
entries in /proc, you won't see /proc/0.

-Ravi.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
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