freebsd-nq/share/man
Ian Lepore fc09164658 Restore the ability to deregister an eventhandler from within the callback.
When the EVENTHANDLER(9) subsystem was created, it was a documented feature
that an eventhandler callback function could safely deregister itself. In
r200652 that feature was inadvertantly broken by adding drain-wait logic to
eventhandler_deregister(), so that it would be safe to unload a module upon
return from deregistering its event handlers.

There are now 145 callers of EVENTHANDLER_DEREGISTER(), and it's likely many
of them are depending on the drain-wait logic that has been in place for 8
years. So instead of creating a separate eventhandler_drain() and adding it
to some or all of those 145 call sites, this creates a separate
eventhandler_drain_nowait() function for the specific purpose of
deregistering a callback from within the running callback.

Differential Revision:	https://reviews.freebsd.org/D12561
2017-10-08 17:21:16 +00:00
..
man1 share: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:26:40 +00:00
man3 Provide more detailed specification for major(), minor() and makedev(). 2017-08-05 07:52:15 +00:00
man4 cxgbe(4): Provide knobs to set the holdoff parameters of TOE rx queues 2017-10-05 07:18:16 +00:00
man5 Bump src.conf.5's Dd. 2017-10-06 08:49:15 +00:00
man6 Separate manual pages into their own package. 2016-01-21 16:36:33 +00:00
man7 arch.7: correct statement about time_t size 2017-10-04 14:39:55 +00:00
man8 More ATM and NATM removal 2017-04-27 16:05:12 +00:00
man9 Restore the ability to deregister an eventhandler from within the callback. 2017-10-08 17:21:16 +00:00
Makefile