opnsense-src/sys/netns
Seigo Tanimura 243917fe3b Lock down a socket, milestone 1.
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
  socket buffer. The mutex in the receive buffer also protects the data
  in struct socket.

o Determine the lock strategy for each members in struct socket.

o Lock down the following members:

  - so_count
  - so_options
  - so_linger
  - so_state

o Remove *_locked() socket APIs.  Make the following socket APIs
  touching the members above now require a locked socket:

 - sodisconnect()
 - soisconnected()
 - soisconnecting()
 - soisdisconnected()
 - soisdisconnecting()
 - sofree()
 - soref()
 - sorele()
 - sorwakeup()
 - sotryfree()
 - sowakeup()
 - sowwakeup()

Reviewed by:	alfred
2002-05-20 05:41:09 +00:00
..
idp.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
idp_usrreq.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
idp_var.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
ns.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ns.h Remove __P. 2002-03-20 02:39:27 +00:00
ns_cksum.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ns_error.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ns_error.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
ns_if.h Remove __P. 2002-03-20 02:39:27 +00:00
ns_input.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
ns_ip.c Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
ns_output.c Desupport FreeBSD/vax 2001-11-03 13:35:07 +00:00
ns_pcb.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ns_pcb.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
ns_proto.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sp.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
spidp.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
spp_debug.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
spp_debug.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
spp_timer.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
spp_usrreq.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
spp_var.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00