diff options
author | brian <brian@FreeBSD.org> | 2002-04-10 01:13:57 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-04-10 01:13:57 +0000 |
commit | 8ad55476a0c93a0bcb9e3363b8a11bd9a5c02883 (patch) | |
tree | 09baefc08667f2a69a2232e92a34ddae0120a2f3 /sys/sys/linker.h | |
parent | bb6d0ad1874d4e5dc01d944e588782bb11194dba (diff) | |
download | FreeBSD-src-8ad55476a0c93a0bcb9e3363b8a11bd9a5c02883.zip FreeBSD-src-8ad55476a0c93a0bcb9e3363b8a11bd9a5c02883.tar.gz |
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.
Diffstat (limited to 'sys/sys/linker.h')
-rw-r--r-- | sys/sys/linker.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/linker.h b/sys/sys/linker.h index 28169d5..f138df7 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -38,6 +38,8 @@ MALLOC_DECLARE(M_LINKER); #endif +struct mod_depend; + /* * Object representing a file which has been loaded by the linker. */ @@ -110,7 +112,8 @@ int linker_load_file(const char* _filename, linker_file_t* _result); /* * Obtain a reference to a module, loading it if required. */ -int linker_reference_module(const char* _modname, linker_file_t* _result); +int linker_reference_module(const char* _modname, struct mod_depend *_verinfo, + linker_file_t* _result); /* * Find a currently loaded file given its filename. |