FreeBSD/sys/rpc/svc_vc.c
/*
 * Create a new transport for a backchannel on a clnt_vc socket.
 */
Create a new transport for a backchannel on a clnt_vc socket.
Create a new transport for a backchannel on a clnt_vc socket .
SVCXPRT *
svc_vc_create_backchannel(SVCPOOL *pool)
{
	SVCXPRT *xprt = NULL;
	struct cf_conn *cd = NULL;
	cd = mem_alloc(sizeof(*cd));
	cd->strm_stat = XPRT_IDLE;
	xprt = svc_xprt_alloc();
	sx_init(&xprt->xp_lock, "xprt->xp_lock");
	xprt->xp_pool = pool;
	xprt->xp_socket = NULL;
	xprt->xp_p1 = cd;
	xprt->xp_p2 = NULL;
	xprt->xp_ops = &svc_vc_backchannel_ops;
	return (xprt);
}
SVCXPRT * svc_vc_create_backchannel ( SVCPOOL * pool ) { SVCXPRT * xprt = NULL ; struct cf_conn * cd = NULL ; cd = mem_alloc ( sizeof ( * cd ) ) ; cd -> strm_stat = XPRT_IDLE ; xprt = svc_xprt_alloc ( ) ; sx_init ( & xprt -> xp_lock , " " ) ; xprt -> xp_pool = pool ; xprt -> xp_socket = NULL ; xprt -> xp_p1 = cd ; xprt -> xp_p2 = NULL ; xprt -> xp_ops = & svc_vc_backchannel_ops ; return ( xprt ) ; }
Create a new transport for a backchannel on a clnt_vc socket.
Create a new transport for a backchannel on a clnt_vc socket .