cvs commit: src/sys/kern uipc_socket.c

Robert Watson rwatson at FreeBSD.org
Sun Jul 11 11:29:47 PDT 2004


rwatson     2004-07-11 18:29:47 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket.c 
  Log:
  Add additional annotations to soreceive(), documenting the effects of
  locking on 'nextrecord' and concerns regarding potentially inconsistent
  or stale use of socket buffer or stack fields if they aren't carefully
  synchronized whenever the socket buffer mutex is released.  Document
  that the high-level sblock() prevents races against other readers on
  the socket.
  
  Also document the 'type' logic as to how soreceive() guarantees that
  it will only return one of normal data or inline out-of-band data.
  
  Revision  Changes    Path
  1.199     +35 -1     src/sys/kern/uipc_socket.c


More information about the cvs-src mailing list