diff options
author | rrs <rrs@FreeBSD.org> | 2007-09-08 11:35:11 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-09-08 11:35:11 +0000 |
commit | 4dd82bd675126ae3087b47d4425b57c8c44aa790 (patch) | |
tree | 33156f38f2aa559546f6d475b9777be0710945b3 /sys/netinet/sctp_output.h | |
parent | 8c4e364ee08a6259e006283ec6d3d38f50f37d5f (diff) | |
download | FreeBSD-src-4dd82bd675126ae3087b47d4425b57c8c44aa790.zip FreeBSD-src-4dd82bd675126ae3087b47d4425b57c8c44aa790.tar.gz |
- Locking compatiability changes. This involves adding
additional flags to many function calls. The flags only
get used in BSD when we compile with lock testing. These
flags allow apple to escape the "giant" lock it holds on
the socket and have more fine-grained locking in the NKE.
It also allows us to test (with witness) the locking used
by apple via a compile switch (manually applied).
Approved by: re@freebsd.org(B Mah)
Diffstat (limited to 'sys/netinet/sctp_output.h')
-rw-r--r-- | sys/netinet/sctp_output.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/sys/netinet/sctp_output.h b/sys/netinet/sctp_output.h index 0643e94..bd35269 100644 --- a/sys/netinet/sctp_output.h +++ b/sys/netinet/sctp_output.h @@ -74,7 +74,12 @@ int int sctp_v4src_match_nexthop(struct sctp_ifa *sifa, sctp_route_t * ro); -void sctp_send_initiate(struct sctp_inpcb *, struct sctp_tcb *); +void +sctp_send_initiate(struct sctp_inpcb *, struct sctp_tcb *, int +#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) + SCTP_UNUSED +#endif +); void sctp_send_initiate_ack(struct sctp_inpcb *, struct sctp_tcb *, @@ -128,8 +133,18 @@ sctp_insert_on_wheel(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, int holdslock); -void sctp_chunk_output(struct sctp_inpcb *, struct sctp_tcb *, int); -void sctp_send_abort_tcb(struct sctp_tcb *, struct mbuf *); +void +sctp_chunk_output(struct sctp_inpcb *, struct sctp_tcb *, int, int +#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) + SCTP_UNUSED +#endif +); +void +sctp_send_abort_tcb(struct sctp_tcb *, struct mbuf *, int +#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) + SCTP_UNUSED +#endif +); void send_forward_tsn(struct sctp_tcb *, struct sctp_association *); |