diff options
author | markj <markj@FreeBSD.org> | 2013-08-14 00:42:21 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-08-14 00:42:21 +0000 |
commit | cee1e037da7213db868bb6bfc99884926330de56 (patch) | |
tree | 8b4622cbc65ef30919bb38531ed18a5a5c4f7f03 /sys/kern/kern_linker.c | |
parent | ca13e69c2fa126397190f335a734aec79c296ea8 (diff) | |
download | FreeBSD-src-cee1e037da7213db868bb6bfc99884926330de56.zip FreeBSD-src-cee1e037da7213db868bb6bfc99884926330de56.tar.gz |
Use kld_{load,unload} instead of mod_{load,unload} for the linker file load
and unload event handlers added in r254266.
Reported by: jhb
X-MFC with: r254266
Diffstat (limited to 'sys/kern/kern_linker.c')
-rw-r--r-- | sys/kern/kern_linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 252bd2e..3e500f3 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -1046,7 +1046,7 @@ kern_kldload(struct thread *td, const char *file, int *fileid) if (fileid != NULL) *fileid = lf->id; - EVENTHANDLER_INVOKE(mod_load, lf); + EVENTHANDLER_INVOKE(kld_load, lf); #ifdef HWPMC_HOOKS KLD_DOWNGRADE(); @@ -1103,7 +1103,7 @@ kern_kldunload(struct thread *td, int fileid, int flags) if (lf) { KLD_DPF(FILE, ("kldunload: lf->userrefs=%d\n", lf->userrefs)); - EVENTHANDLER_INVOKE(mod_unload, lf, &error); + EVENTHANDLER_INVOKE(kld_unload, lf, &error); if (error != 0) error = EBUSY; else if (lf->userrefs == 0) { |