The fork_init() Function

Fork_init() is located in kernel/fork.c.

Fork_init() initializes the kernel's max_threads and init_task variables. This information is used by the kernel during fork() system calls.