Re: Kernel deamons that are invoked during bootup

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

 



On Thu 12 June 2003 21:18, Karthik M wrote:
> Hello everyone,
>
> I observed that the various kernel deamons like
> khubd,kjournald, etc., that are running on the system
> have process ids greater than 100. As far as i have
> understood it these kernel_threads are invoked from
> functions inside init/main.c. The thing i would like
> to know is how the PID's are assigned to these
> kernel_threads. I understand that kernel_thread
> invokes sys_clone() syscall.
>
> Some of the kernel_threads have PID's less than 10,
> which is quiet understandable as the PID 1 is reserved
> for the init process, but some of them have PID's >
> 100 which is confusion.
>
> Any clarification would be helpful.




in kernel/fork.c:
function do_fork:
.....
p->pid = get_pid(clone_flags)
.....

look at here

hope this help.


Daniele.


PGP PKEY      http://pgp.mit.edu:11371/pks/lookup?search=belch76@libero.it&op=index
ICQ#               104896040  
Netphone/Fax  178.605.7063
Homepage       http://web.tiscali.it/bellucda




--
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