diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-06-12 16:08:41 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-06-12 16:08:41 +0000 |
commit | 7bfe3e80fc4fa11f091353498f3ce7475f7beec8 (patch) | |
tree | 6d7ee4d7e1232a2656227e586c0d50921c10cb53 /sys/netinet/tcp_subr.c | |
parent | ad8388ad62dec33a4bf8116aaf62c2f3fe1b5505 (diff) | |
download | FreeBSD-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