The source code is written with the aim that it can be read like a book. Start from kernel_main
and follow function call links