FreeBSD/sys/geom/vinum/geom_vinum_subr.c
/* Check if any consumer of the given geom is open. */
Check if any consumer of the given geom is open.
Check if any consumer of the given geom is open .
int
gv_consumer_is_open(struct g_consumer *cp)
{
	if (cp == NULL)
		return (0);
	if (cp->acr || cp->acw || cp->ace)
		return (1);
	return (0);
}
int gv_consumer_is_open ( struct g_consumer * cp ) { if ( cp == NULL ) return ( 0 ) ; if ( cp -> acr || cp -> acw || cp -> ace ) return ( 1 ) ; return ( 0 ) ; }
Check if any consumer of the given geom is open.
Check if any consumer of the given geom is open .