freebsd-skq/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
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
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
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
smb_usr.c
smb.h