freebsd-dev/sys/netatm
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
..
ipatm - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
sigpvc - Change KM_ macro calls to the appropriate function call. 2002-04-19 17:45:22 +00:00
spans - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
uni - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
atm_aal5.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
atm_cm.c - Change the atm_cm_init function to take no argument. 2002-05-07 20:12:29 +00:00
atm_cm.h - Change the atm_cm_init function to take no argument. 2002-05-07 20:12:29 +00:00
atm_device.c - Nuke some #ifdef sun4m code; it hasn't been updated in 4 years and is not 2002-04-19 20:02:03 +00:00
atm_if.c - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
atm_if.h - Nuke some more #ifdef sun related sections. 2002-04-19 21:38:43 +00:00
atm_ioctl.h - Nuke some more #ifdef sun related sections. 2002-04-19 21:38:43 +00:00
atm_pcb.h More HARP polishina: 2000-10-12 07:42:34 +00:00
atm_proto.c - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
atm_sap.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
atm_sigmgr.h Remove __P. 2002-03-20 02:39:27 +00:00
atm_signal.c - Change KM_ macro calls to the appropriate function call. 2002-04-19 17:45:22 +00:00
atm_socket.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
atm_stack.h Remove __P. 2002-03-20 02:39:27 +00:00
atm_subr.c - Remove the init routine for loop -- it broke something and I don't have 2002-05-07 20:50:10 +00:00
atm_sys.h - Change KM_ macro calls to the appropriate function call. 2002-04-19 17:45:22 +00:00
atm_usrreq.c - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
atm_var.h - Add atm_init_fn 2002-05-07 20:36:35 +00:00
atm_vc.h More HARP polishina: 2000-10-12 07:42:34 +00:00
atm.h - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
port.h - Nuke some more not needed #ifdef cruft. 2002-04-21 01:41:05 +00:00
queue.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00