freebsd-dev/sys/netgraph/bluetooth/socket
Max Laier 4f240aff01 Move ng_socket and ng_btsocket initialization to SI_SUB_PROTO_DOMAIN as they
call net_add_domain(). Calling this function too early (or late) breaks
assertations about the global domains list.
Actually it should be forbidden to call net_add_domain() outside of
SI_SUB_PROTO_DOMAIN completely as there are many places where we traverse
the domains list unprotected, but for now we allow late calls (mostly to
support netgraph). In order to really fix this we have to lock the domains
list in all places or find another way to ensure that we can safely walk the
list while another thread might be adding a new domain.

Spotted by:	se
Reviewed by:	julian, glebius
PR:		kern/73321	(partly)
2004-11-30 22:28:50 +00:00
..
ng_btsocket_hci_raw.c Push acquisition of the accept mutex out of sofree() into the caller 2004-10-18 22:19:43 +00:00
ng_btsocket_l2cap_raw.c Push acquisition of the accept mutex out of sofree() into the caller 2004-10-18 22:19:43 +00:00
ng_btsocket_l2cap.c Push acquisition of the accept mutex out of sofree() into the caller 2004-10-18 22:19:43 +00:00
ng_btsocket_rfcomm.c Push acquisition of the accept mutex out of sofree() into the caller 2004-10-18 22:19:43 +00:00
ng_btsocket.c Move ng_socket and ng_btsocket initialization to SI_SUB_PROTO_DOMAIN as they 2004-11-30 22:28:50 +00:00
TODO Part one of undating the bluetooth code to the newest version 2003-05-10 21:44:42 +00:00