cvs commit: src/sys/modules/iwi Makefile src/sys/dev/iwi
if_iwi.cif_iwi
Sergey Babkin
babkin at verizon.net
Mon Nov 21 15:45:26 PST 2005
Warner Losh wrote:
>
> > The loader can, that's how the mfsroot.gz file gets loaded
> > during install.
>
> /boot/loader can do this certainly. And you can lookup a file based
> on its name from the in-kernel loader.
>
> However, there doesn't appear to be a linker class that can load
> arbitrary files. The in-kernel linker can only lookup things loaded
> at boot time.
>
> I think that creating a link_file might be a good alternative to
> having drivers do vfs operations directly. The kernel would load it
> safely and hand a reference to the file to the driver. The driver can
> then frob it into the hardware and unload the module.
I didn't get the e-mails in between yet, so maybe this has been
already mentioned, but I'd also have the offset in the file and
maximal length to read as arguments. This would allow the drivers
to read large files by loading a reasonably small portion at a time.
-SB
More information about the freebsd-arch
mailing list