summaryrefslogtreecommitdiff
path: root/sys/kern/kern_linker.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-06-20 20:18:42 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-06-20 20:18:42 +0000
commitaaf3170501aafa623b84036cc3eac491f60dc176 (patch)
tree90246acc6346430cc696ed113ad707698c9137d4 /sys/kern/kern_linker.c
parent57dc2664efa9ef4695af6340340772b5613a95fb (diff)
Notes
Diffstat (limited to 'sys/kern/kern_linker.c')
-rw-r--r--sys/kern/kern_linker.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index fd824c9ca810..67c45c8a40c8 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -109,8 +109,12 @@ struct modlist {
typedef struct modlist *modlist_t;
static modlisthead_t found_modules;
-static modlist_t modlist_lookup2(const char *name,
- struct mod_depend *verinfo);
+static int linker_file_add_dependency(linker_file_t file,
+ linker_file_t dep);
+static int linker_load_module(const char *kldname,
+ const char *modname, struct linker_file *parent,
+ struct mod_depend *verinfo, struct linker_file **lfpp);
+static modlist_t modlist_lookup2(const char *name, struct mod_depend *verinfo);
static char *
linker_strdup(const char *str)
@@ -561,7 +565,7 @@ linker_file_unload(linker_file_t file, int flags)
return (0);
}
-int
+static int
linker_file_add_dependency(linker_file_t file, linker_file_t dep)
{
linker_file_t *newdeps;
@@ -1719,7 +1723,7 @@ linker_hwpmc_list_objects(void)
* Find a file which contains given module and load it, if "parent" is not
* NULL, register a reference to it.
*/
-int
+static int
linker_load_module(const char *kldname, const char *modname,
struct linker_file *parent, struct mod_depend *verinfo,
struct linker_file **lfpp)