g_provider_by_name (9)
Leading comments
Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
d...
(The comments found at the beginning of the groff file "man9/g_provider_by_name.9freebsd".)
NAME
g_provider_by_name
- find GEOM provider with given name
SYNOPSIS
In geom/geom.h
Ft struct g_provider *
Fn g_provider_by_name const char *name
DESCRIPTION
The
Fn g_provider_by_name
function searches for a provider called
Fa name
and returns the structure
Vt g_provider
bound to it.
Argument
Fa 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
Fn g_provider_by_name
function
returns a pointer to the provider called
Fa name
or
NULL
if there is no such provider.
SEE ALSO
geom(4),
DECLARE_GEOM_CLASS9,
g_access9,
g_attach9,
g_bio9,
g_consumer9,
g_data9,
g_event9,
g_geom9,
g_provider9,
g_wither_geom9
AUTHORS
An -nosplit
This manual page was written by
An Pawel Jakub Dawidek Aq pjd@FreeBSD.org .