SIMPLE SOLUTIONS

G_PROVIDER_BY_NAME(9FREEBSD) - man page online | system kernel interfaces

Find GEOM provider with given name.

Chapter
January 16, 2004
G_PROVIDER_BY_NAME(9)             BSD Kernel Developer's Manual             G_PROVIDER_BY_NAME(9)

NAME g_provider_by_name — find GEOM provider with given name
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 struc‐ ture 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 <@FreeBSD.org>.
BSD January 16, 2004 BSD
This manual Reference Other manuals
g_provider_by_name(9freebsd) referred by DECLARE_GEOM_CLASS(9freebsd) | g_access(9freebsd) | g_attach(9freebsd) | g_bio(9freebsd) | g_cancel_event(9freebsd) | g_clone_bio(9freebsd) | g_consumer(9freebsd) | g_data(9freebsd) | g_destroy_bio(9freebsd) | g_destroy_consumer(9freebsd) | g_destroy_geom(9freebsd) | g_destroy_provider(9freebsd) | g_detach(9freebsd) | g_error_provider(9freebsd) | g_event(9freebsd) | g_geom(9freebsd) | g_new_bio(9freebsd) | g_new_consumer(9freebsd) | g_new_geomf(9freebsd) | g_new_providerf(9freebsd)
refer to DECLARE_GEOM_CLASS(9freebsd) | g_access(9freebsd) | g_attach(9freebsd) | g_bio(9freebsd) | g_consumer(9freebsd) | g_data(9freebsd) | g_event(9freebsd) | g_geom(9freebsd) | g_provider(9freebsd) | g_wither_geom(9freebsd)