vcount (9)
Leading comments
Copyright (c) 2000 Andrew Stevenson
All rights reserved.
This program is free software.
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 disclaim...
(The comments found at the beginning of the groff file "man9/vcount.9freebsd".)
NAME
vcount
count_dev
- get total number of references to a device
SYNOPSIS
In sys/param.h
In sys/time.h
In sys/conf.h
In sys/vnode.h
Ft int
Fn vcount struct vnode *vp
Ft int
Fn count_dev struct cdev *dev
DESCRIPTION
Fn vcount
is used to get the number of references to a particular device.
It allows for the fact that multiple vnodes may reference the same device.
Fn count_dev
does the same thing as
Fn vcount ,
but takes a
Vt struct cdev
rather than a
Vt struct vnode
pointer as an argument.
RETURN VALUES
Fn vcount
and
Fn count_dev
both return the number of references to the device.
SEE ALSO
VFS(9),
vnode(9)
AUTHORS
This manual page was written by
An Andrew Stevenson .