g_provider_by_name(9freebsd)

g_provider_by_name9freebsd

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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

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

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.