aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/module.h
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 /sys/sys/module.h
parent8ba7a3578b1ac0fccdb4fa3e606d6128d80b0a3e (diff)
downloadsrc-2971c36136e01558b58aa4485ecf957f1760121f.tar.gz
src-2971c36136e01558b58aa4485ecf957f1760121f.zip
Add a new module_file() function that returns the linker_file_t associated
with a given module_t. I use this in some the MOD_LOAD event handler for some test kernel modules to ask the kernel linker to look up the linker sets in my test modules. (I use linker sets to generate the list of possible events that I then signal to execute via a sysctl. On non-amd64, ld(8) would resolve the entire linker set, but on amd64 I have to ask the kernel linker to do it for me, and having the kernel linker do it works on all archs.)
Notes
Notes: svn path=/head/; revision=157818
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r--sys/sys/module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/module.h b/sys/sys/module.h
index 5beb9bb6f22c..b621ba3d12e6 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;