Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

count_dev(9) [debian man page]

VCOUNT(9)						   BSD Kernel Developer's Manual						 VCOUNT(9)

NAME
vcount, count_dev -- get total number of references to a device SYNOPSIS
#include <sys/param.h> #include <sys/time.h> #include <sys/conf.h> #include <sys/vnode.h> int vcount(struct vnode *vp); int count_dev(dev_t dev); DESCRIPTION
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. count_dev() does the same thing as vcount(), but takes a dev_t rather than a struct vnode pointer as an argument. RETURN VALUES
vcount() and count_dev() both return the number of references to the device. SEE ALSO
VFS(9), vnode(9) AUTHORS
This manual page was written by Andrew Stevenson. BSD
February 6, 2001 BSD

Check Out this Related Man Page

VOP_LINK(9)						   BSD Kernel Developer's Manual					       VOP_LINK(9)

NAME
VOP_LINK -- create a new name for a file SYNOPSIS
#include <sys/param.h> #include <sys/vnode.h> int VOP_LINK(struct vnode *dvp, struct vnode *vp, struct componentname *cnp); DESCRIPTION
This links a new name in the specified directory to an existing file. Its arguments are: dvp The vnode of the directory. vp The vnode of the file to be linked. cnp Pathname information about the file. The pathname info should not be released on exit because it is done by the caller. The directory and file vnodes should not be released on exit. LOCKS
VOP_LINK() expects the directory and file vnodes to be locked on entry and will leave the vnodes locked on return. RETURN VALUES
Zero is returned if the file was linked successfully, otherwise an error is returned. ERRORS
[EMLINK] The file has too many links. [EPERM] The file is immutable. [EXDEV] A hard link is not possible between different file systems. SEE ALSO
vn_lock(9), vnode(9) AUTHORS
This manual page was originally written by Doug Rabson. BSD
July 24, 1996 BSD
Man Page