1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00
freebsd/sys/netsmb
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
..
netbios.h
smb_conn.c
smb_conn.h
smb_crypt.c
smb_dev.c
smb_dev.h
smb_iod.c Move the new byte order function prototypes from <sys/param.h> to 2002-04-26 22:48:23 +00:00
smb_rq.c Move the new byte order function prototypes from <sys/param.h> to 2002-04-26 22:48:23 +00:00
smb_rq.h
smb_smb.c
smb_subr.c Move the new byte order function prototypes from <sys/param.h> to 2002-04-26 22:48:23 +00:00
smb_subr.h
smb_tran.h
smb_trantcp.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
smb_trantcp.h
smb_usr.c
smb.h