FreeBSD/sys/geom/virstor/g_virstor.c
/*
 * Find a geom handled by the class
 */
Find a geom handled by the class
Find a geom handled by the class
static struct g_virstor_softc *
virstor_find_geom(const struct g_class *cp, const char *name)
{
	struct g_geom *gp;
	LIST_FOREACH(gp, &cp->geom, geom) {
		if (strcmp(name, gp->name) == 0)
			return (gp->softc);
	}
	return (NULL);
}
static struct g_virstor_softc * virstor_find_geom ( const struct g_class * cp , const char * name ) { struct g_geom * gp ; LIST_FOREACH ( gp , & cp -> geom , geom ) { if ( strcmp ( name , gp -> name ) == 0 ) return ( gp -> softc ) ; } return ( NULL ) ; }
Find a geom handled by the class
Find a geom handled by the class