*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> vn_isdisk (9)              
Title
Content
Arch
Section
 

VN_ISDISK(9)

Contents


NAME    [Toc]    [Back]

     vn_isdisk -- checks if a vnode represents a disk

SYNOPSIS    [Toc]    [Back]

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

     int
     vn_isdisk(struct vnode *vp, int *errp);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

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

AUTHORS    [Toc]    [Back]

     This man page was written by Chad David <[email protected]>.


FreeBSD 5.2.1			 July 9, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
set_usage Tru64 checks whether a disk partition is in use and sets the fstype of the partition in the disk label
check_usage Tru64 checks whether a disk partition is in use
verify Tru64 Checks the AdvFS on-disk metadata structures
svnd OpenBSD Vnode Disk Driver
vnd OpenBSD Vnode Disk Driver
dcecp_cdsclient HP-UX A dcecp object that represents a Cell Directory Service client
dcecp_cds HP-UX A dcecp object that represents a Cell Directory Service server
pthread_exc_report_np Tru64 Produces a message that reports what a specified DECthreads status exception object represents
disklabel Tru64 Reads and writes a disk pack label and formats disk partitions
sync NetBSD synchronize disk block in-core status with that on disk
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service