tail head cat sleep
QR code linking to this page

Manual Pages  — VN_ISDISK

NAME

vn_isdisk – checks if a vnode represents a disk

CONTENTS

SYNOPSIS

#include <sys/param.h>
#include <sys/vnode.h>

bool
vn_isdisk(struct vnode *vp);

bool
vn_isdisk_error(struct vnode *vp, int *errp);

DESCRIPTION

The vn_isdisk() and vn_isdisk_error() functions check to see if vp represents a disk. In order for vp to be a disk, it must be a character device, v_rdev must be valid, and the cdevsw entry's flags must have D_DISK set.

The arguments are:
vp
  The vnode to check.
errp
  An integer pointer to store the error number in if the call fails.

RETURN VALUES

If the vnode represents a disk, true is returned; otherwise, false is returned and errp will contain the error number.

AUTHORS

This manual page was written by Chad David <Mt davidc@acns.ab.ca>.

VN_ISDISK (9) June 28, 2021

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language.
— Donald Knuth