Loader-kernel interaction

John Baldwin jhb at freebsd.org
Mon Oct 22 14:37:43 UTC 2012


On Friday, October 19, 2012 7:05:05 pm Richard Yao wrote:
> Dear Everyone,
> 
> I know that the kernel is a BTX client, but I do not understand the
> protocol used by loader to pass sysctl settings and loadable modules to
> the kernel. Is there documentation on this?

The loader passes it's variables as a set of environment variables.
They are stored in a contiguous block of memory after the last kernel
module.  Look at sys/boot/i386/libi386/bootinfo{32,64}.c.  Specifically
look at the bi_load*() routines.

-- 
John Baldwin


More information about the freebsd-hackers mailing list