Every process is first created by a fork system call, which ends up calling _do_fork() in file /kernel/fork.c at line 2416. Inside
fork
_do_fork()
/kernel/fork.c