[PATCH] Implement Symbol-Based Video Driver Autoloading

David Nusinow dnusinow at speakeasy.net
Wed Nov 14 18:04:50 PST 2007


Hi all,
   The attached patch uses the symbols in the pci-reworked drivers to
determine the correct video driver to load when none is specified by the
config file. Before committing it though, I'd like some advice about
certain aspects I'm not happy about:

 1) I don't use the loader at all, I just dlopen, dlsym, and dlclose
    manually rather than use the loader's functions that do the same. Since
    we're all dlloader now, this shouldn't be an issue, and this approach
    avoids heavyweight things like logging each time we check a module, but
    I'd like to know if I should try to use the loader itself somehow
    instead.
 
 2) Related to 1, I pull out the DriverRect manually by appropriately
    mangling the module name, but since the server does this elsewhere I
    feel like I should be able to just call a function available elsewhere
    to do this. Is there an easy way to do this that I've missed, or should
    I try abstracting it out from other parts of the server so I can use it
    here?

Any other critiques and such are very welcome as well. Thanks!

 - David Nusinow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbol_driver_load.diff
Type: text/x-diff
Size: 4647 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20071114/d63a83c2/attachment.diff>


More information about the xorg mailing list