G_PROVIDER_BY_NAME(9)
π G_PROVIDER_BY_NAME(9) π
okay bestie, so this is a page from the Kernel Developer's Manual β manual section 9, for all you kernel-coding girlies out there. Let's get into it β¨
πΈ NAME πΈ
g_provider_by_name β find a GEOM provider with a given name π¦
β¨ SYNOPSIS β¨
#include <geom/geom.h>
struct g_provider *
g_provider_by_name(const char *name);
π DESCRIPTION π
So the g_provider_by_name() function goes looking for a provider called name and hands you back the struct g_provider bound to it. no cap π«Ά
and like, heads up: name should be an actual name, not a whole path. it's giving "da0", NOT "/dev/da0". the way that matters, fr fr π
π RESTRICTIONS/CONDITIONS π
you have to be holding the topology lock. that's not a suggestion, that's the vibe check you cannot fail π
β RETURN VALUES β
g_provider_by_name() returns a pointer to the provider called name, or NULL if there's literally no such provider. iconic behaviour honestly π
π 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>. thank you king, we love a documented kernel API π«Άβ¨
and that's the whole page bestie, you ate that π
Debian Β· January 16, 2004 Β· G_PROVIDER_BY_NAME(9) β ok bye, go write some GEOM code, mwah πππΈ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms