xref: /openbsd-src/share/man/man9/vfinddev.9 (revision dddd2645fd99df9cea4bd12d510ca892fff2f643)
1*dddd2645Sschwarze.\"     $OpenBSD: vfinddev.9,v 1.7 2013/06/04 19:27:15 schwarze Exp $
2ac0b1781Scsapuntz.\"-
3ac0b1781Scsapuntz.\" Copyright (c) 2002 Peter Werner
4ac0b1781Scsapuntz.\" All rights reserved.
5ac0b1781Scsapuntz.\"
6ac0b1781Scsapuntz.\" Redistribution and use in source and binary forms, with or without
7ac0b1781Scsapuntz.\" modification, are permitted provided that the following conditions
8ac0b1781Scsapuntz.\" are met:
9ac0b1781Scsapuntz.\" 1. Redistributions of source code must retain the above copyright
10ac0b1781Scsapuntz.\"    notice, this list of conditions and the following disclaimer.
11ac0b1781Scsapuntz.\" 2. Redistributions in binary form must reproduce the above copyright
12ac0b1781Scsapuntz.\"    notice, this list of conditions and the following disclaimer in the
13ac0b1781Scsapuntz.\"    documentation and/or other materials provided with the distribution.
14ac0b1781Scsapuntz.\"
15ac0b1781Scsapuntz.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16ac0b1781Scsapuntz.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17ac0b1781Scsapuntz.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18ac0b1781Scsapuntz.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19ac0b1781Scsapuntz.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20ac0b1781Scsapuntz.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21ac0b1781Scsapuntz.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22ac0b1781Scsapuntz.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23ac0b1781Scsapuntz.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24ac0b1781Scsapuntz.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25ac0b1781Scsapuntz.\" SUCH DAMAGE.
26ac0b1781Scsapuntz.\"
27ac0b1781Scsapuntz.\"
28*dddd2645Sschwarze.Dd $Mdocdate: June 4 2013 $
29ac0b1781Scsapuntz.Dt VFINDDEV 9
30b00e7293Sjmc.Os
31ac0b1781Scsapuntz.Sh NAME
32ac0b1781Scsapuntz.Nm vfinddev
33ac0b1781Scsapuntz.Nd lookup a vnode by device number
34ac0b1781Scsapuntz.Sh SYNOPSIS
35*dddd2645Sschwarze.In sys/param.h
36*dddd2645Sschwarze.In sys/vnode.h
37ac0b1781Scsapuntz.Ft int
38ac0b1781Scsapuntz.Fo vfinddev
39ac0b1781Scsapuntz.Fa "dev_t dev"
40ac0b1781Scsapuntz.Fa "enum vtype type"
41ac0b1781Scsapuntz.Fa "struct vnode **vpp"
42ac0b1781Scsapuntz.Fc
43ac0b1781Scsapuntz.Sh DESCRIPTION
44ac0b1781ScsapuntzThe
45ac0b1781Scsapuntz.Fn vfinddev
46ac0b1781Scsapuntzfunction returns a pointer to the vnode of the device represented by the
47ac0b1781Scsapuntzdevice number
48ac0b1781Scsapuntz.Fa dev
49ac0b1781Scsapuntzand of type
50ac0b1781Scsapuntz.Fa type
51ac0b1781Scsapuntzin
52ac0b1781Scsapuntz.Fa vpp .
53ac0b1781Scsapuntz.Sh RETURN VALUES
54ac0b1781Scsapuntz.Fn vfinddev
55db5918d3Sjmcwill return 1 if a corresponding vnode was found, 0 otherwise.
56ac0b1781Scsapuntz.Sh SEE ALSO
57ac0b1781Scsapuntz.Xr vnode 9
58ac0b1781Scsapuntz.Sh HISTORY
59601d79cdSjmcThis man page was originally written for
60601d79cdSjmc.Ox .
61