]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Invoke the kld_* event handlers from linker_load_file() and
authormarkj <markj@FreeBSD.org>
Thu, 19 Dec 2013 03:48:36 +0000 (03:48 +0000)
committermarkj <markj@FreeBSD.org>
Thu, 19 Dec 2013 03:48:36 +0000 (03:48 +0000)
commit8a7a061696ca2732bea84e2e776353dc699dd8a7
tree586d41a98775bc5ed2da173c7dbcc897ee3cea7e
parent46ec78f11c40bbc985485167f7e7dde07e90b8c2
Invoke the kld_* event handlers from linker_load_file() and
linker_unload_file() rather than kern_kldload() and kern_kldunload(). This
ensures that the handlers are invoked for files that are loaded/unloaded
automatically as dependencies. Previously, they were only invoked for files
loaded by a user.

As a side effect, the kld_load and kld_unload handlers are now invoked with
the kernel linker lock exclusively held.

Reported by: avg
Reviewed by: jhb
MFC after: 2 weeks
sys/kern/kern_linker.c