aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/Makefile
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2005-02-07 02:47:33 +0000
committerIan Dowse <iedowse@FreeBSD.org>2005-02-07 02:47:33 +0000
commit98c926b20fcc0953abe69be05b43e9cfc95b2c47 (patch)
tree5dea023d3d1cd872af007610de788883258c40c1 /share/man/man9/Makefile
parentb542a023e588ac247ef854dad63e2992de10014d (diff)
downloadsrc-98c926b20fcc0953abe69be05b43e9cfc95b2c47.tar.gz
src-98c926b20fcc0953abe69be05b43e9cfc95b2c47.zip
Add a mechanism for associating a mutex with a callout when the
callout is first initialised, using a new function callout_init_mtx(). The callout system will acquire this mutex before calling the callout function and release it on return. In addition, the callout system uses the mutex to avoid most of the complications and race conditions inherent in asynchronous timer facilities, so mutex-protected callouts have much simpler semantics. As long as the mutex is held when invoking callout_stop() or callout_reset(), then these functions will guarantee that the callout will be stopped, even if softclock() had already begun to process the callout. Existing Giant-locked callouts will automatically pick up the new race-free semantics. This should close a number of race conditions in the USB code and probably other areas of the kernel too. There should be no change in behaviour for "MP-safe" callouts; these still need to use the techniques mentioned in timeout(9) to avoid race conditions.
Notes
Notes: svn path=/head/; revision=141428
Diffstat (limited to 'share/man/man9/Makefile')
-rw-r--r--share/man/man9/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 660dda357680..7d5c499c2c93 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -919,9 +919,14 @@ MLINKS+=taskqueue.9 TASK_INIT.9 \
MLINKS+=time.9 boottime.9 \
time.9 time_second.9 \
time.9 time_uptime.9
-MLINKS+=timeout.9 callout_drain.9 \
+MLINKS+=timeout.9 callout.9 \
+ timeout.9 callout_active.9 \
+ timeout.9 callout_deactivate.9 \
+ timeout.9 callout_drain.9 \
timeout.9 callout_handle_init.9 \
timeout.9 callout_init.9 \
+ timeout.9 callout_init_mtx.9 \
+ timeout.9 callout_pending.9 \
timeout.9 callout_reset.9 \
timeout.9 callout_stop.9 \
timeout.9 untimeout.9