freebsd-dev/sys/netsmb
Robert Watson c0b99ffa02 The socket field so_state is used to hold a variety of socket related
flags relating to several aspects of socket functionality.  This change
breaks out several bits relating to send and receive operation into a
new per-socket buffer field, sb_state, in order to facilitate locking.
This is required because, in order to provide more granular locking of
sockets, different state fields have different locking properties.  The
following fields are moved to sb_state:

  SS_CANTRCVMORE            (so_state)
  SS_CANTSENDMORE           (so_state)
  SS_RCVATMARK              (so_state)

Rename respectively to:

  SBS_CANTRCVMORE           (so_rcv.sb_state)
  SBS_CANTSENDMORE          (so_snd.sb_state)
  SBS_RCVATMARK             (so_rcv.sb_state)

This facilitates locking by isolating fields to be located with other
identically locked fields, and permits greater granularity in socket
locking by avoiding storing fields with different locking semantics in
the same short (avoiding locking conflicts).  In the future, we may
wish to coallesce sb_state and sb_flags; for the time being I leave
them separate and there is no additional memory overhead due to the
packing/alignment of shorts in the socket buffer structure.
2004-06-14 18:16:22 +00:00
..
netbios.h Finish driving a stake through the heart of netns and the associated 2003-03-05 19:24:24 +00:00
smb_conn.c Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
smb_conn.h Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
smb_crypt.c Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
smb_dev.c add missing #include <sys/module.h> 2004-05-30 20:27:19 +00:00
smb_dev.h Use automatic major number allocation for nsmb devices. 2004-02-11 12:49:49 +00:00
smb_iod.c Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
smb_rq.c add missing #include <sys/module.h> 2004-05-30 20:27:19 +00:00
smb_rq.h Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
smb_smb.c Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
smb_subr.c Use __FBSDID(). 2003-06-11 05:37:42 +00:00
smb_subr.h Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
smb_tran.h Reserve a transport parameter name and number for Darwin. 2002-09-16 10:57:13 +00:00
smb_trantcp.c The socket field so_state is used to hold a variety of socket related 2004-06-14 18:16:22 +00:00
smb_trantcp.h Increase send/receive queue to accomodate large readx/writex requests. 2002-09-18 07:38:10 +00:00
smb_usr.c size_t != int. Make this compile on 64 bit platforms (eg: amd64). 2003-07-24 01:59:18 +00:00
smb.h Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00