Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/g_provider_by_name.9
Show All 18 Lines | |||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd January 16, 2004 | .Dd January 29, 2021 | ||||
.Dt G_PROVIDER_BY_NAME 9 | .Dt G_PROVIDER_BY_NAME 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm g_provider_by_name | .Nm g_provider_by_name | ||||
.Nd "find GEOM provider with given name" | .Nd "find GEOM provider with given name" | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In geom/geom.h | .In geom/geom.h | ||||
.Ft "struct g_provider *" | .Ft "struct g_provider *" | ||||
.Fn g_provider_by_name "const char *name" | .Fn g_provider_by_name "const char *name" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Fn g_provider_by_name | .Fn g_provider_by_name | ||||
function searches for a provider called | function searches for a provider called | ||||
.Fa name | .Fa name | ||||
and returns the structure | and returns the structure | ||||
.Vt g_provider | .Vt g_provider | ||||
bound to it. | bound to it. | ||||
Argument | Argument | ||||
.Fa name | .Fa name | ||||
should be a name, not a full path (i.e., | can be a name or full path (i.e., | ||||
.Dq Pa da0 , | .Dq Pa da0 , | ||||
instead of | or | ||||
.Dq Pa /dev/da0 ) . | .Dq Pa /dev/da0 ) . | ||||
.Sh RESTRICTIONS/CONDITIONS | .Sh RESTRICTIONS/CONDITIONS | ||||
The topology lock has to be held. | The topology lock has to be held. | ||||
.Sh RETURN VALUES | .Sh RETURN VALUES | ||||
The | The | ||||
.Fn g_provider_by_name | .Fn g_provider_by_name | ||||
function | function | ||||
returns a pointer to the provider called | returns a pointer to the provider called | ||||
Show All 20 Lines |