freebsd-dev/sys/netatm
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
..
ipatm
sigpvc
spans
uni
atm_aal5.c The socket field so_state is used to hold a variety of socket related 2004-06-14 18:16:22 +00:00
atm_cm.c
atm_cm.h
atm_device.c
atm_if.c
atm_if.h
atm_ioctl.h
atm_pcb.h
atm_proto.c
atm_sap.h
atm_sigmgr.h
atm_signal.c
atm_socket.c
atm_stack.h
atm_subr.c
atm_sys.h
atm_usrreq.c
atm_var.h
atm_vc.h
atm.h
port.h
queue.h