summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-08-13 03:07:49 +0000
committermarkj <markj@FreeBSD.org>2013-08-13 03:07:49 +0000
commit80dd3f5e733e7d8ade978c6ff5f50dd66e87dc9b (patch)
treedcad89fb8dcad3f906701c32834969307169d079 /share
parentc063aad382f7f397a474f5340d8be40d6eecf8d2 (diff)
downloadFreeBSD-src-80dd3f5e733e7d8ade978c6ff5f50dd66e87dc9b.zip
FreeBSD-src-80dd3f5e733e7d8ade978c6ff5f50dd66e87dc9b.tar.gz
Add event handlers for module load and unload events. The load handlers are
called after the module has been loaded, and the unload handlers are called before the module is unloaded. Moreover, the module unload handlers may return an error to prevent the unload from proceeding. Reviewed by: avg MFC after: 2 weeks
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/EVENTHANDLER.98
1 files changed, 7 insertions, 1 deletions
diff --git a/share/man/man9/EVENTHANDLER.9 b/share/man/man9/EVENTHANDLER.9
index 4a16660..ee015cd 100644
--- a/share/man/man9/EVENTHANDLER.9
+++ b/share/man/man9/EVENTHANDLER.9
@@ -23,7 +23,7 @@
.\" SUCH DAMAGE.
.\" $FreeBSD$
.\"
-.Dd May 11, 2012
+.Dd August 1, 2013
.Dt EVENTHANDLER 9
.Os
.Sh NAME
@@ -199,6 +199,12 @@ Callbacks invoked when a new network interface appears.
Callbacks invoked when a network interface is taken down.
.It Vt bpf_track
Callbacks invoked when a BPF listener attaches to/detaches from network interface.
+.It Vt mod_load
+Callbacks invoked after a module has been loaded.
+.It Vt mod_unload
+Callbacks invoked before a module is about to be unloaded.
+These callbacks may be used to return an error and prevent the unload from
+proceeding.
.It Vt power_profile_change
Callbacks invoked when the power profile of the system changes.
.It Vt process_exec
OpenPOWER on IntegriCloud