PERFORCE change 50544 for review

Peter Wemm peter at wemm.org
Fri Apr 9 12:03:59 PDT 2004


On Tuesday 06 April 2004 11:08 pm, Pawel Jakub Dawidek wrote:
> On Tue, Apr 06, 2004 at 05:47:35PM -0700, Peter Wemm wrote:
> +> http://perforce.freebsd.org/chv.cgi?CH=50544
> +>
> +> Change 50544 by peter at peter_daintree on 2004/04/06 17:47:08
> +>
> +> 	mark runtime kldload as done.
> +> 	add new entry for kldxref and loader preload support.
> +>
> [...]
> +> +kld preload support, teach the loader how to read new-style .ko
> files, +> +as well as kldxref.  kldxref should be easy, it should be
> able to just +> +read the modmetadata section directly, apply the
> relocs for that section, +> +and use that to find the pointers to the
> other sections.
>
> It would be cool, if we will be able to read (from kernel)
> modmetadata before module is loaded. I think this is what is stopping
> as to check if module with the same name already exists.
>
> I may be wrong, while I haven't spend enough time on this yet.
> If we are able to get only modmetadata from .ko from inside the
> kernel (before loading module), tell me how, so we can fix this
> long-standing KLD issue.

Hmm.  I know we can suck it into memory and check the metadata right 
there, and fail the load if there are duplicate modules *before* we 
begin registration..
-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


More information about the p4-projects mailing list