Modern Age: The start_kernel( ) Function

The start_kernel( ) function completes the initialization of the Linux kernel. Nearly every kernel component is initialized by this function; we mention just a few of them:

  • The Page Tables are initialized by invoking the paging_init( ) function (see Section 2.5.5).

  • The page descriptors are initialized by the kmem_init( ), free_area_init( ), and mem_init( ) functions (see Section 7.1.4).

  • The final initialization of the IDT is performed by invoking trap_init( ) (see Section 4.5) and init_IRQ( ) (see Section 4.6.1.2).

  • The slab allocator is initialized by the kmem_cache_init( ) and kmem_cache_sizes_init( ) functions (see Section 7.2.4).

  • The system date and time are initialized by the time_init( ) function (see Section 6.1.1).

  • The kernel thread for process 1 is created by invoking the kernel_thread( ) function. In turn, this kernel thread creates the other kernel threads and executes the /sbin/init program, as described in Section 3.4.2 in Chapter 3.

Besides the “Linux version 2.4.18 . . . " message, which is displayed right after the beginning of start_kernel( ), many other messages are displayed in this last phase, both by the init functions and by the kernel threads. At the end, the familiar login prompt appears on the console (or in the graphical screen, if the X Window System is launched at startup), telling the user that the Linux kernel is up and running.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset