freebsd-skq/sys/netnatm
rwatson 82295697cd 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
..
natm_pcb.c Style(9): remove unneccesary space and blank lines, indentation, 2003-08-06 13:46:15 +00:00
natm_proto.c o add a flags parameter to netisr_register that is used to specify 2003-11-08 22:28:40 +00:00
natm.c Extend coverage of SOCK_LOCK(so) to include so_count, the socket 2004-06-12 20:47:32 +00:00
natm.h Remove the last vestiges of ATM raw mode. This has not been useful for a 2003-08-06 14:34:38 +00:00