g_provider_by_name(9)

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

Authors

This manual page was written by Pawel Jakub Dawidek ⟨[email protected]⟩.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.