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 can be a name or full path (i.e., “da0”, or “/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.
Releases
52 releases since FreeBSD 5.3-RELEASE; the text changed 33 times.