1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/sys/netgraph/bluetooth
Robert Watson 395a08c904 Extend coverage of SOCK_LOCK(so) to include so_count, the socket
reference count:

- Assert SOCK_LOCK(so) macros that directly manipulate so_count:
  soref(), sorele().

- Assert SOCK_LOCK(so) in macros/functions that rely on the state of
  so_count: sofree(), sotryfree().

- Acquire SOCK_LOCK(so) before calling these functions or macros in
  various contexts in the stack, both at the socket and protocol
  layers.

- In some cases, perform soisdisconnected() before sotryfree(), as
  this could result in frobbing of a non-present socket if
  sotryfree() actually frees the socket.

- Note that sofree()/sotryfree() will release the socket lock even if
  they don't free the socket.

Submitted by:	sam
Sponsored by:	FreeBSD Foundation
Obtained from:	BSD/OS
2004-06-12 20:47:32 +00:00
..
common add missing #include <sys/module.h> 2004-05-30 20:27:19 +00:00
drivers add missing #include <sys/module.h> 2004-05-30 20:27:19 +00:00
hci Switch to using C99 sparse initialisers for the type methods array. 2004-05-29 00:51:19 +00:00
include Mode few Bluetooth defines into system include files 2004-05-10 02:24:56 +00:00
l2cap Switch to using C99 sparse initialisers for the type methods array. 2004-05-29 00:51:19 +00:00
socket Extend coverage of SOCK_LOCK(so) to include so_count, the socket 2004-06-12 20:47:32 +00:00