LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Root file system (https://www.linuxquestions.org/questions/programming-9/root-file-system-414436/)

vishalbutte 02-12-2006 02:32 AM

Root file system
 
In kernel code where exactly root file system gets mounted?

frob23 02-12-2006 04:26 PM

http://lxr.linux.no/source/init/do_mounts.c#L270

This is the function which does it, do_mount_root()

It is called by mount_block_root() or mount_nfs_root() depending on where the root filesystem is located.

These functions are called by mount_root() which should be called from the initrd functions.

.... mount_root() -> mount_block_root() -> do_mount_root()

Depending on what you're interested in finding out, those should be the functions you look at.


All times are GMT -5. The time now is 03:28 AM.