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
..
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-05-06 16:28:25 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2002-05-12 00:22:38 +00:00
2002-03-19 21:25:46 +00:00
2002-05-20 05:41:09 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2001-06-11 12:39:29 +00:00
2002-05-20 05:41:09 +00:00
2002-04-11 02:14:21 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2001-11-04 17:35:31 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2001-09-12 08:38:13 +00:00
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-05-20 05:41:09 +00:00
2002-03-19 21:25:46 +00:00
2002-05-20 05:41:09 +00:00
2002-03-19 21:25:46 +00:00
2001-02-26 20:10:16 +00:00
2002-05-20 05:41:09 +00:00
2002-03-19 21:25:46 +00:00