head/sys/rpc/clnt_dg.c
/*
 * Wait for all upcalls in progress to complete.
 */
Wait for all upcalls in progress to complete.
Wait for all upcalls in progress to complete .
static void
clnt_dg_upcallsdone(struct socket *so, struct cu_socket *cs)
{
	SOCKBUF_LOCK_ASSERT(&so->so_rcv);
	while (cs->cs_upcallrefs > 0)
		(void) msleep(&cs->cs_upcallrefs, SOCKBUF_MTX(&so->so_rcv), 0,
		    "rpcdgup", 0);
}
static void clnt_dg_upcallsdone ( struct socket * so , struct cu_socket * cs ) { SOCKBUF_LOCK_ASSERT ( & so -> so_rcv ) ; while ( cs -> cs_upcallrefs > 0 ) ( void ) msleep ( & cs -> cs_upcallrefs , SOCKBUF_MTX ( & so -> so_rcv ) , 0 , " " , 0 ) ; }
Wait for all upcalls in progress to complete.
Wait for all upcalls in progress to complete .