Gleb Smirnoff 535e0a0981 Cleanup alias module handler register/unregister.
- Remove locking, since all module(9) events are running under &Giant.
- Use TAILQ for protocol handlers and fix a bug which led to
  infinite cycle. Bug found in VirtualBox [1]
- Simplify code everywhere.
- Fix documentation.

[1]  https://www.virtualbox.org/pipermail/vbox-dev/2013-November/011936.html

PR:		183792 [1]
Submitted by:	Valery Ushakov <uwe NetBSD.org> [1]
Sponsored by:	Nginx, Inc.
2013-12-25 03:24:20 +00:00
..
2013-12-25 02:06:57 +00:00
2013-12-25 02:06:57 +00:00
2013-12-25 02:06:57 +00:00
2013-12-25 02:06:57 +00:00
2013-12-25 02:06:57 +00:00
2013-12-25 02:06:57 +00:00
2013-12-25 02:06:57 +00:00