g_provider_by_name9
Find geom provider with given name
Usage
#include <geom/geom.h>
struct g_provider *
g_provider_by_name(const char *name);
Overview
The g_provider_by_name() function searches for a provider called name and returns the structure g_provider bound to it. Argument name should be a name, not a full path (i.e., “da0”, instead of “/dev/da0”).
Restrictions/conditions
The topology lock has to be held.
Return values
The g_provider_by_name() function returns a pointer to the provider called name or NULL if there is no such provider.