GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VN_ISDISK(9) FreeBSD Kernel Developer's Manual VN_ISDISK(9)

vn_isdiskchecks if a vnode represents a disk

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

bool
vn_isdisk(struct vnode *vp);

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

The () and () 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.

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

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

June 28, 2021 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.