G_PROVIDER_BY_NAME(9)
π G_PROVIDER_BY_NAME(9) β find GEOM provider by name
Bestie, welcome to the G_PROVIDER_BY_NAME(9) page from the Kernel Developer's Manual. It's giving kernel-dev realness, and honestly? Iconic.
β¨ 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 a pointer to the struct g_provider bound to it. Argument name can be a name or a full path (i.e., da0, or /dev/da0). The way it accepts both forms? Obsessed, honestly.
π«Ά RESTRICTIONS/CONDITIONS π«Ά
The topology lock has to be held. Like, you genuinely must be holding it β no sneaky calls without it, fr fr.
β RETURN VALUES β
g_provider_by_name() returns a pointer to the provider called name, or NULL if there is no such provider. If it doesn't exist, you get NULL β that's the whole vibe check.
π₯ 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 <pjd@FreeBSD.org>.
Cute sign-off time: this page is from the Debian edition, dated January 29, 2021, for G_PROVIDER_BY_NAME(9) β periodt. π
β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms