Re: kernel question

David Woodhouse (David.Woodhouse@mvhi.com)
Mon, 18 Jan 1999 19:41:40 +0000


wakko@animx.eu.org said:
> I know this can't be done yet, but I'm wondering if it would be
> possible to write code for. If you compile a driver that can be
> modularized into the kernel, how hard would it be to have that driver
> unloaded from a running kernel? (I guess you could say I want to catch
> part ofthe kernel. It runs pretty quick =)

> I've seen solaris have modules loaded that are needed at boot time.
> For instance, the root file system driver is a module, scsi is a
> module (the machine I looked at is nothing but scsi), and the elf
> binary format is a module (I assume it's required to mount file
> systems as well)

You could do this by having modules loaded at boot time. Rather than compiling
the modules into the kernel and trying to hack them out later, you compile them
normally as modules, but then get the kernel to initialise them at boot time,
as if they'd been loaded by insmod, before the root filesystem is mounted.

They can be passed to the kernel in much the same way as an initrd is - by
loading them into memory and passing a pointer. In fact, a proposed standard
already exists for this, grub already supports this for other OS kernels.

Take a look at http://www.uruk.org/grub/boot-proposal.html

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/