summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-06-12 16:08:41 +0000
committerrwatson <rwatson@FreeBSD.org>2004-06-12 16:08:41 +0000
commit7bfe3e80fc4fa11f091353498f3ce7475f7beec8 (patch)
tree6d7ee4d7e1232a2656227e586c0d50921c10cb53 /sys/netinet/tcp_subr.c
parentad8388ad62dec33a4bf8116aaf62c2f3fe1b5505 (diff)
downloadFreeBSD-src-7bfe3e80fc4fa11f091353498f3ce7475f7beec8.zip
FreeBSD-src-7bfe3e80fc4fa11f091353498f3ce7475f7beec8.tar.gz
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
Diffstat (limited to 'sys/netinet/tcp_subr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud