1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/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_usrreq.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
idp_var.h
idp.h
ns_cksum.c
ns_error.c
ns_error.h
ns_if.h
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
ns_output.c
ns_pcb.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ns_pcb.h
ns_proto.c
ns.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ns.h
sp.h
spidp.h
spp_debug.c
spp_debug.h
spp_timer.h
spp_usrreq.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
spp_var.h