FreeBSD/sys/geom/vinum/geom_vinum_subr.c
/* Find a drive given a device. */
Find a drive given a device.
Find a drive given a device .
struct gv_drive *
gv_find_drive_device(struct gv_softc *sc, char *device)
{
	struct gv_drive *d;
	LIST_FOREACH(d, &sc->drives, drive) {
		if(!strcmp(d->device, device))
			return (d);
	}
	return (NULL);
}
struct gv_drive * gv_find_drive_device ( struct gv_softc * sc , char * device ) { struct gv_drive * d ; LIST_FOREACH ( d , & sc -> drives , drive ) { if ( ! strcmp ( d -> device , device ) ) return ( d ) ; } return ( NULL ) ; }
Find a drive given a device.
Find a drive given a device .