when is populate_rootfs called?

Jiahao XU <[email protected]> Mon, 5 Apr 2021 00:11:51 +1000
Newsgroups org.kernel.vger.linux-newbie
Message-ID <CALJHi=-VQubwLxjObVmJjAh7A6j0Tm9h028kWcCfbHMo1mCnuQ@mail.gmail.com>
Hi

I have read through
https://stackoverflow.com/questions/10540008/how-does-the-linux-kernel-determine-the-order-of-init-calls
and looked at the source code related to init, like `start_kernel`,
`kernel_init_mem`, `do_ido_initcall_levelnitcall_level` and
`offset_to_ptr`, but I am still totally confused at when is
`populate_rootfs` called.