freebsd-nq/sys/cddl
Mark Johnston 29f4e216f2 Rename the kld_unload event handler to kld_unload_try, and add a new
kld_unload event handler which gets invoked after a linker file has been
successfully unloaded. The kld_unload and kld_load event handlers are now
invoked with the shared linker lock held, while kld_unload_try is invoked
with the lock exclusively held.

Convert hwpmc(4) to use these event handlers instead of having
kern_kldload() and kern_kldunload() invoke hwpmc(4) hooks whenever files are
loaded or unloaded. This has no functional effect, but simplifes the linker
code somewhat.

Reviewed by:	jhb
2013-08-24 21:13:38 +00:00
..
boot/zfs MFV r245512: 2013-02-09 06:39:28 +00:00
compat/opensolaris Replace kernel virtual address space allocation with vmem. This provides 2013-08-07 06:21:20 +00:00
contrib/opensolaris Rename the kld_unload event handler to kld_unload_try, and add a new 2013-08-24 21:13:38 +00:00
dev Rename the kld_unload event handler to kld_unload_try, and add a new 2013-08-24 21:13:38 +00:00