logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

g_provider_by_name — find GEOM provider with given name

Authors

       This manual page was written by Pawel Jakub Dawidek <pjd@FreeBSD.org>.

Debian                                          January 16, 2004                           G_PROVIDER_BY_NAME(9)

Description

       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”).

Name

       g_provider_by_name — find GEOM provider with given name

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.

See Also

geom(4), DECLARE_GEOM_CLASS(9), g_access(9), g_attach(9), g_bio(9), g_consumer(9), g_data(9), g_event(9),
       g_geom(9), g_provider(9), g_wither_geom(9)

Synopsis

#include<geom/geom.h>structg_provider*g_provider_by_name(constchar*name);

See Also