From 880eb8c1efdaf1a2fbc87b6bb0b2c2e7539f841c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 20 Jun 2006 20:59:55 +0000 Subject: [PATCH] Add a new section in this file for functions that are only exported by the linker for use in the linker class handlers. Move linker_add_class(), linker_file_unload(), linker_load_dependencies(), and linker_make_file() into this section. --- sys/sys/linker.h | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/sys/sys/linker.h b/sys/sys/linker.h index 39311ff66509..e35180a2e06e 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -104,11 +104,6 @@ typedef int linker_predicate_t(linker_file_t, void *); */ extern linker_file_t linker_kernel_file; -/* - * Add a new file class to the linker. - */ -int linker_add_class(linker_class_t _cls); - /* * Obtain a reference to a module, loading it if required. */ @@ -130,16 +125,6 @@ int linker_release_module(const char *_modname, struct mod_depend *_verinfo, */ int linker_file_foreach(linker_predicate_t *_predicate, void *_context); -/* - * Called from a class handler when a file is laoded. - */ -linker_file_t linker_make_file(const char* _filename, linker_class_t _cls); - -/* - * Unload a file, freeing up memory. - */ -int linker_file_unload(linker_file_t _file, int flags); - /* * Lookup a symbol in a file. If deps is TRUE, look in dependencies * if not found in file. @@ -156,10 +141,12 @@ int linker_file_lookup_set(linker_file_t _file, const char *_name, void *_start, void *_stop, int *_count); /* - * This routine is responsible for finding dependencies of userland - * initiated kldload(2)'s of files. + * Functions soley for use by the linker class handlers. */ +int linker_add_class(linker_class_t _cls); +int linker_file_unload(linker_file_t _file, int flags); int linker_load_dependencies(linker_file_t _lf); +linker_file_t linker_make_file(const char* _filename, linker_class_t _cls); /* * DDB Helpers, tuned specifically for ddb/db_kld.c