:man| Alphabetical   Categories   About us 
 
VN_ISDISK (9) | Kernel routines | Unix Manual Pages | :man

NAME

vn_isdisk - "checks if a vnode represents a disk"

CONTENTS

Synopsis
Description
Return Values
Authors

SYNOPSIS


.In sys/param.h
.In sys/vnode.h int vn_isdisk "struct vnode *vp" "int *errp"

DESCRIPTION

The vn_isdisk function checks 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
.Vt cdevsw entry’s flags must have D_DISK set.

Its 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, 1 is returned; otherwise, 0 is returned and errp will contain the error number.

AUTHORS

This manual page was written by
.An Chad David Aq
davidc@acns.ab.ca .

July 9, 2001 VN_ISDISK (9)
shtml">manServer 1.07 from vn_isdisk.9 using doc macros.


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013