This routine is called by “main” (1615) to initialise the “mount” table entry for the root device.
Call the “open” routine for the root device. Note that “rootdev” is defined in “conf.c” (4695);
Copy the contents of the root device “super block” into a buffer area not associated with any particular device;
The zeroeth entry in the “mount” table is assigned to the root device. Only two of the three elements are explicitly initialised. The third, the “inode” pointer, will never be referenced;
The “locks” stored in the “super block” are explicitly reset. (These locks may have been set when the “super block” was last written onto the file system volume);
The root device is mounted in a “writable” state;
The system sets its idea of the current time and date from the time recorded in the “super block”. (If the system has been stopped for an appreciable period, the computer operator will need to reset the contents of “time”.)