On Sat, 24 Nov 2007, Aryeh Friedman wrote:

> Where do I find the main() [and/or other entery point] for the kernel.... I
> tend to understand stuff better if I follow the flow of exec from the start

Everyone else is suggesting very earlier in the boot, but I think the point
where the kernel where things get interesting is in init_main.c in
mi_startup(). The first thing you'll find there is that our kernel
initialization is modular, where different modules (compiled in or loaded as
klds) register an ordered set of boot events (see sys/kernel.h for the boot
order). You'll need to grep around the kernel to find the registration
points for various subsystems.

Robert N M Watson
Computer Laboratory
University of Cambridge
freebsd-hackers@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"