aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-04-17 19:44:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-04-17 19:44:44 +0000
commit2971c36136e01558b58aa4485ecf957f1760121f (patch)
treec9d9b44dff26f24a439a335c2353888069cc820c
parent8ba7a3578b1ac0fccdb4fa3e606d6128d80b0a3e (diff)
Notes
-rw-r--r--sys/kern/kern_module.c7
-rw-r--r--sys/sys/module.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index e76565ec8d456..f92d39cb2814e 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -264,6 +264,13 @@ module_setspecific(module_t mod, modspecific_t *datap)
mod->data = *datap;
}
+linker_file_t
+module_file(module_t mod)
+{
+
+ return (mod->file);
+}
+
/*
* Syscalls.
*/
diff --git a/sys/sys/module.h b/sys/sys/module.h
index 5beb9bb6f22ca..b621ba3d12e62 100644
--- a/sys/sys/module.h
+++ b/sys/sys/module.h
@@ -147,6 +147,7 @@ int module_unload(module_t, int flags);
int module_getid(module_t);
module_t module_getfnext(module_t);
void module_setspecific(module_t, modspecific_t *);
+struct linker_file *module_file(module_t);
#ifdef MOD_DEBUG
extern int mod_debug;