vn_isdisk (9)
Leading comments
Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice(s), this list of conditions and the following disclaimer as the first lines of this file unmodified other than the possible addition of one or more copyright notices. 2. Redistributions in binary for...
NAME
vn_isdisk - checks if a vnode represents a diskSYNOPSIS
In sys/param.h In sys/vnode.h Ft int Fn vn_isdisk struct vnode *vp int *errpDESCRIPTION
The Fn vn_isdisk function checks to see if Fa vp represents a disk. In order for Fa 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:
- Fa vp
- The vnode to check.
- Fa errp
- An integer pointer to store the error number in if the call fails.