[Devel] dlopen(... RTLD_LOCAL vs. RTLD_GLOBAL
Bastian Friedrich
bastian.friedrich at collax.com
Tue Nov 28 10:31:49 CET 2006
Hi,
Am Dienstag, 28. November 2006 10:09 schrieb Daniel-Constantin Mierla:
> to optimize a bit, I would keep the default flags in a variable and I
> will check the flags forced by a module with those ones, not to
> close/open again with same flags.
ACK. See attached patch.
> Also, maybe a value (like 0) should be
> used to signal that the module wants to be loaded with the default flags
> and not double-check again.
I used "if (modflags >= 0)" (i.e.: -1 is "default flags"); 0 could potentially
be a valid flag.
Thx a lot,
Bastian
--
Collax GmbH . Burkheimer Straße 3 . 79111 Freiburg . Germany
p: +49 (0) 761-45684-24
f: +49 (0) 761-45684-10 www.collax.com
\ An unbreakable toy is useful for breaking other toys.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sr_module-modinfo.patch2
Type: text/x-diff
Size: 1831 bytes
Desc: not available
Url : http://openser.org/pipermail/devel/attachments/20061128/1c5f5ec6/sr_module-modinfo-0001.bin
More information about the Devel
mailing list