-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkboot1.html
More file actions
28 lines (27 loc) · 1.1 KB
/
kboot1.html
File metadata and controls
28 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<font face="helvetica">
<title>Kernel Booting</title>
<body>
<p align=center><font size=+5>Kernel Booting</font>
<hr>
<a href="contents.html">Contents</a>
<font size=+3>
<p><font face="monospace">start_kernel()</font> in
<font face="monospace">init/main.c</font> is
the entry point into the booting
kernel. Eventually, after initializing a bunch of stuff, at the end
of start_kernel, after transforming into the hand-crafted init process,
<font face="monospace">rest_init()</font> is called.
<p><font face="monospace">rest_init()</font> starts the
<font face="monospace">kernel_init</font> thread and
<font face="monospace">kthreadd</font> -- which is a thread that is used to
start new threads. <font face="monospace">kernel_init()</font>
tries to execute an init program via a series of calls to <font face="monospace">run_init_process</font>,
which relies on <font face="monospace">do_execve (in fs/exec.c)</font> to do the execution.
It will attempt to execute
<font face="monospace">/sbin/init, /etc/init, /bin/init,</font> or
<font face="monospace">/bin/sh</font>, in that order.
</ul>
</font>
</body>
</html>