logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vn_isdisk — checks if a vnode represents a disk

Authors

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

Debian                                            July 9, 2001                                      VN_ISDISK(9)

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.

Name

       vn_isdisk — checks if a vnode represents a disk

Return Values

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

Synopsis

#include<sys/param.h>#include<sys/vnode.h>intvn_isdisk(structvnode*vp, int*errp);

See Also