G_PROVIDER_BY_NAME(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… 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 πŸ”₯

πŸ’– 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