Date: Sat, 12 Jun 2004 16:08:41 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys socketvar.h src/sys/kern uipc_socket.c Message-ID: <200406121608.i5CG8fef023764@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406121608.i5CG8fef023764>