]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change linker_reference_module() so that it's passed a struct
authorbrian <brian@FreeBSD.org>
Wed, 10 Apr 2002 01:13:57 +0000 (01:13 +0000)
committerbrian <brian@FreeBSD.org>
Wed, 10 Apr 2002 01:13:57 +0000 (01:13 +0000)
commit8ad55476a0c93a0bcb9e3363b8a11bd9a5c02883
tree09baefc08667f2a69a2232e92a34ddae0120a2f3
parentbb6d0ad1874d4e5dc01d944e588782bb11194dba
Change linker_reference_module() so that it's passed a struct
mod_depend * (which may be NULL).  The only consumer of this
function at the moment is digi_loadmoduledata(), and that passes
a NULL mod_depend *.

In linker_reference_module(), check to see if we've already got
the required module loaded.  If we have, bump the reference count
and return that, otherwise continue the module search as normal.
sys/dev/digi/digi.c
sys/kern/kern_linker.c
sys/sys/linker.h