cvs commit: src/sys/sys socketvar.h src/sys/kern uipc_socket.c

Robert Watson rwatson at FreeBSD.org
Sat Jun 12 16:09:16 GMT 2004


rwatson     2004-06-12 16:08:41 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              socketvar.h 
    sys/kern             uipc_socket.c 
  Log:
  Introduce a mutex into struct sockbuf, sb_mtx, which will be used to
  protect fields in the socket buffer.  Add accessor macros to use the
  mutex (SOCKBUF_*()).  Initialize the mutex in soalloc(), and destroy
  it in sodealloc().  Add addition, add SOCK_*() access macros which
  will protect most remaining fields in the socket; for the time being,
  use the receive socket buffer mutex to implement socket level locking
  to reduce memory overhead.
  
  Submitted by:   sam
  Sponosored by:  FreeBSD Foundation
  Obtained from:  BSD/OS
  
  Revision  Changes    Path
  1.176     +4 -0      src/sys/kern/uipc_socket.c
  1.117     +27 -0     src/sys/sys/socketvar.h


More information about the cvs-src mailing list