Date: Mon, 22 Oct 2012 10:02:40 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: Richard Yao <ryao@gentoo.org>, "hackers@FreeBSD.org" <hackers@freebsd.org> Subject: Re: Loader-kernel interaction Message-ID: <201210221002.40194.jhb@freebsd.org> In-Reply-To: <5081DCA1.80906@gentoo.org> References: <5081DCA1.80906@gentoo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210221002.40194.jhb>