Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jan 1996 03:19:41 -0800
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        A JOSEPH KOSHY <koshy@india.hp.com>
Cc:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Re: Demand loading (Re: FreeBSD, Zappa & PCI) 
Message-ID:  <7741.820667981@time.cdrom.com>
In-Reply-To: Your message of "Wed, 03 Jan 1996 16:01:06 %2B0530." <199601031031.AA299195067@fakir.india.hp.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Well, it would be nice to be able to delay loading a driver till needed.
> Even nicer would be the ability to unload and reload a driver on the fly.
> 
> This would allow customers to update portions of the kernel without
> having to bring the system down, (well, in theory, anyway :)).

That's basically where devfs and the LKM mechanisms are heading,
though I don't know if proper `unloading' has been properly
instrumented yet (e.g. with depends).

> Can someone explain why we need ELF or its equivalent for this
> to be feasible? 

I don't think we do at all.  It wouldn't be *that* hard to do with our
current a.out format, and I think the first big thing we need to do is
implement a `lighter weight' LKM mechanism that doesn't rely on
/usr/bin/ld to load things into the kernel, otherwise you run into a
chicken-and-egg problem loading disk drivers dynamically.

There's the `fasl' code in gcl (/usr/ports/lang/gcl) to look at,
though it's somewhat simplistic and requires that you extract all the
symbol names from the target first using another utility.

						Jordan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7741.820667981>