GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

     vn_isdisk — checks if a vnode represents a disk

SYNOPSIS

     #include <sys/param.h>
     #include <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 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 Chad David ⟨davidc@acns.ab.ca⟩.



  All copyrights belong to their respective owners. Other content (c) 2014-2017, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.087 seconds. Last modified: November 09 2017 18:38:06.