count_dev(9freebsd)

count_dev9freebsd

Get total number of references to a device

Usage

#include <sys/param.h>

#include <sys/time.h>

#include <sys/conf.h>

#include <sys/vnode.h>

int

vcount(struct vnode *vp);

int

count_dev(struct cdev *dev);

Overview

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 struct cdev rather than a struct vnode pointer as an argument.

Return values

vcount() and count_dev() both return the number of references to the device.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Andrew Stevenson.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.