a strange/stupid question
Robert Watson
rwatson at FreeBSD.org
Sat Nov 24 03:48:32 PST 2007
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
More information about the freebsd-hackers
mailing list