Fw: fork() source code

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

 



 ----- Original Message -----
 From: <shinny@j02.itscom.net>
 To: <kernelnewbies@nl.linux.org>
 Sent: Thursday, December 11, 2003 11:43 AM
 Subject: fork() source code


 > Hi, all
 >
 > This question may be really basic though,
 > I'm studying how the linux creates a process and schedules it on
 > 2.6 at the moment.
 > The core function to create a process seems to be do_fork() in
 > kernel/fork.c.
 > And do_fork() is called from sys_fork() or sys_clone().
 > But we usually use fork() not sys_fork(), don't we?
 > So I downloaded the latest libc(glibc-2.3.2) source and looked for
 >fork().
 > However there are several functions and files that are likely to
be
 >fork().
 > Which fork() in which file is the real we call from our program?
 >
 > Regards,
 > Shinpei Kato
 > --

 That is about glibc and has nothing to do with linux kernel.
 glibc provides wrappers for sys_fork() which is then called from
user
 space programs.


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