g_provider_by_name(9)
find GEOM provider with given name
SYNOPSIS
In geom/geom.h
Ft struct g_provider *
Fn g_provider_by_name const char *name
DESCRIPTION
The
Fn g_provider_by_name
function searches for a provider called
Fa name
and returns the structure
Vt g_provider
bound to it.
Argument
Fa 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
Fn g_provider_by_name
function
returns a pointer to the provider called
Fa name
or
NULL
if there is no such provider.
AUTHORS
An -nosplit
This manual page was written by
An Pawel Jakub Dawidek Aq
[email protected] .