FreeBSD/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
/*
 * Mark the connection as being incapable of further output.
 */
Mark the connection as being incapable of further output.
Mark the connection as being incapable of further output .
static int
sdp_shutdown(struct socket *so)
{
	int error = 0;
	struct sdp_sock *ssk;
	ssk = sdp_sk(so);
	SDP_WLOCK(ssk);
	if (ssk->flags & (SDP_TIMEWAIT | SDP_DROPPED)) {
		error = ECONNRESET;
		goto out;
	}
	socantsendmore(so);
	sdp_usrclosed(ssk);
	if (!(ssk->flags & SDP_DROPPED))
		sdp_output_disconnect(ssk);
out:
	SDP_WUNLOCK(ssk);
	return (error);
}
static int sdp_shutdown ( struct socket * so ) { int error = 0 ; struct sdp_sock * ssk ; ssk = sdp_sk ( so ) ; SDP_WLOCK ( ssk ) ; if ( ssk -> flags & ( SDP_TIMEWAIT | SDP_DROPPED ) ) { error = ECONNRESET ; goto out ; } socantsendmore ( so ) ; sdp_usrclosed ( ssk ) ; if ( ! ( ssk -> flags & SDP_DROPPED ) ) sdp_output_disconnect ( ssk ) ; out : SDP_WUNLOCK ( ssk ) ; return ( error ) ; }
Mark the connection as being incapable of further output.
Mark the connection as being incapable of further output .