What is the name of the function that calls two functions of the same name but with different parameters to create the first two kernel threads?
I assume you're talking about the Linux kernel. In that case you are probably referring to rest_init() which calls kernel_thread()
two times to create the kernel_init
and kthreadd
threads.