SJ wrote:
> Hi,
> I have a couple of general questions regarding the
> kernel: I'll appreciate any help whatsoever in this
> regard.
>
> 1) In the ioconf.c file I see an entry for a resource
>
> as:
> { "at", RES_STRING, { (long)"isa" }},
> ^^^^^^^
> Shouldnt (long) be (char*) ?
No. The type of the third argument is "long", which is known to be able to
represent a pointer on the platforms that 4.x and earlier support. In
5.x we just have ascii strings and no ioconf.c at all.
> 2) what purpose does SYSINIT serve?
They provide an ordered hook in the boot sequence. You provide a function,
a data pointer, and where/when it is to be called. The kernel will call
those functions at the appropriate time for you so that you can do
initialization etc. It is done with linker magic. (see gensetdefs and
setdef*)
> thanks for your time,
> SJ
Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message