tail head cat sleep
QR code linking to this page

Manual Pages  — G_PROVIDER_BY_NAME

NAME

g_provider_by_name – find GEOM provider with given name

CONTENTS

SYNOPSIS

#include <geom/geom.h>

struct g_provider *
g_provider_by_name(const char *name);

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

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)

AUTHORS

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

G_PROVIDER_BY_NAME (9) January 16, 2004

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.”