Kernel Newbies archive on
 help / color / Atom feed
From: (Alex Wilson)
Subject: fork
Date: Mon, 18 Apr 2016 01:12:50 -0600
Message-ID: <> (raw)
In-Reply-To: <>

On Mon, Apr 18, 2016 at 12:48 AM, Nitin Varyani
<> wrote:
> Linux kernel development by Robert Love describes the fork process as
> fork() -> clone() -> do_fork() -> copy_process()
> I am unable to find the clone() system call in linux 3.13.
> Can someone explain the proper flow of fork() system call initiated by the user?
> Where can I find the libc implementation for fork()? I want the code of all the functions involved in fork.
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at

I believe the fork and clone syscalls are found at /kernel/fork.c
under 3.13. (see link below)
They're wrapped in the nice SYSCALL_DEFINE# macros and all seem to
call do_fork().

Can't really help you on the libc part, and you would need to specify
which libc implementation you're interested in.

  reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18  6:48 fork varyani.nitin1
2016-04-18  7:12 ` alex.david.wilson [this message]
2016-04-18  8:18 ` fork cakturk
2020-01-09 10:35 Fork Christophe DUMONT
2020-01-09 10:47 ` Fork Valentin Vidić

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on

Archives are clonable:
	git clone --mirror kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ \
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone