From: Rafael L. <lab...@ps...> - 2003-02-10 07:24:04
|
* Maurice LeBrun <mj...@ga...> [2003-02-09 21:13]: > I've not been following the discussion very closely, but does this mean that > the code currently loads all dynamic drivers at startup time? If true, this > seems against the spirit of dynamic drivers, and adds unnecessarily to the > memory used by the application. This is what I thought at the beginning and this is why I proposed the alternative design with the <driver>.rc files. However here is what Joao wrote some days ago: * João Cardoso <jc...@fe...> [2003-02-07 14:51]: > Your concerns that dlopen() would load all libraries that a driver needs > does not apply, as this would only happens if some drivers code is > executed, which is not the case. As libtool's info says: > > "Unresolved symbols in the module are resolved using > its dependency libraries" > > As the symbols you are looking for are in the modules, no further > loading will occur. I hope that this is true for all architectures. At any rate, as Alan pointed out, in the current design the driver moudles should be dlclosed after the plD_DEVICE_INFO_<dirver> variable is obtained. -- Rafael |