1.\" $OpenBSD: vcount.9,v 1.4 2007/05/31 19:20:01 jmc Exp $ 2.\" -*- nroff -*- 3.\" 4.\" Copyright (c) 2000 Andrew Stevenson 5.\" 6.\" All rights reserved. 7.\" 8.\" This program is free software. 9.\" 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 13.\" 1. Redistributions of source code must retain the above copyright 14.\" notice, this list of conditions and the following disclaimer. 15.\" 2. Redistributions in binary form must reproduce the above copyright 16.\" notice, this list of conditions and the following disclaimer in the 17.\" documentation and/or other materials provided with the distribution. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 20.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29.\" 30.\" If this man page travels to places exotic (like projects other than 31.\" FreeBSD) I would love to hear about it. 32.\" Andrew <andrew@ugh.net.au> 33.\" 34.\" $FreeBSD: src/share/man/man9/vcount.9,v 1.4 2001/12/26 23:14:04 davidc Exp $ 35.\" 36.Dd $Mdocdate: May 31 2007 $ 37.Os 38.Dt VCOUNT 9 39.Sh NAME 40.Nm vcount 41.Nd get total number of references to a device 42.Sh SYNOPSIS 43.Fd #include <sys/param.h> 44.Fd #include <sys/time.h> 45.Fd #include <sys/conf.h> 46.Fd #include <sys/vnode.h> 47.Ft int 48.Fn vcount "struct vnode *vp" 49.Sh DESCRIPTION 50.Fn vcount 51is used to get the number of references to a particular device. 52It allows for the fact that multiple vnodes may reference the same device. 53.Sh RETURN VALUES 54.Fn vcount 55returns the number of references to the device. 56.Sh SEE ALSO 57.Xr vnode 9 58.Sh AUTHORS 59This man page was originally written by 60.An Andrew Stevenson 61for 62.Fx . 63