g_provider_by_name.9freebsd

Langue: en

Version: 309423 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

g_provider_by_name - 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.

SEE ALSO

geom(4), DECLARE_GEOM_CLASS9, g_access9, g_attach9, g_bio9, g_consumer9, g_data9, g_event9, g_geom9, g_provider9, g_wither_geom9

AUTHORS

An -nosplit This manual page was written by An Pawel Jakub Dawidek Aq pjd@FreeBSD.org .