1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/compat
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
..
freebsd32 Initial support for executing IA-32 binaries. This will not compile 2002-04-10 19:34:51 +00:00
linprocfs Change p_can{debug,see,sched,signal}()'s first argument to be a thread 2002-05-19 00:14:50 +00:00
linux In msgrcv(), set msgtyp correctly. Hardwiring 0 as the message type 2002-05-18 07:53:56 +00:00
netbsd Remove __P. 2002-03-20 05:48:58 +00:00
pecoff - Change fill_kinfo_proc() to require that the process is locked when it 2002-04-09 20:10:46 +00:00
svr4 Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00