vtype
enum rump_vtype vtype;
rump_pub_getvninfo(vp, &vtype, &vsize, (void *)&rdev);
puffs_newinfo_setvtype(pni, (enum vtype)vtype);
enum rump_vtype vtype;
rump_pub_getvninfo(vp, &vtype, &vsize, (void *)&rdev);
puffs_newinfo_setvtype(pni, (enum vtype)vtype);
const enum vtype iftovt_tab[16] = {
puffs_access(enum vtype type, mode_t file_mode, uid_t uid, gid_t gid,
puffs_access_chmod(uid_t owner, gid_t group, enum vtype type, mode_t mode,
puffs_newinfo_setvtype(struct puffs_newinfo *pni, enum vtype vt)
puffs_setrootinfo(struct puffs_usermount *pu, enum vtype vt,
enum vtype, size_t, dev_t);
void puffs_newinfo_setvtype(struct puffs_newinfo *, enum vtype);
int puffs_vtype2dt(enum vtype);
enum vtype puffs_mode2vt(mode_t);
mode_t puffs_addvtype2mode(mode_t, enum vtype);
int puffs_access(enum vtype, mode_t, uid_t, gid_t, mode_t,
int puffs_access_chmod(uid_t, gid_t, enum vtype, mode_t,
enum vtype *pni_vtype;
puffs_vtype2dt(enum vtype vt)
enum vtype
puffs_addvtype2mode(mode_t mode, enum vtype type)
if (vtype < __arraycount(vtype_table)) {
assert(vtype_table[vtype] != NULL);
return vtype_table[vtype];
mkfile(struct Xconn *xc, enum vtype vtype, mode_t mode, uid_t uid, gid_t gid,
type = fromvtype(vtype);
enum vtype vtype, mode_t mode, uid_t uid, gid_t gid, fileid_t *idp)
error = mkfile(xc, vtype, mode, uid, gid, &fileid);
enum vtype vtype, mode_t mode, uid_t uid, gid_t gid, fileid_t *fileidp,
error = mklinkfile(xc, parent_fileid, name, vtype, mode, uid, gid,
unsigned int vtype;
vtype = tovtype(type);
if (vtype == VREG || vtype == VLNK) {
fromvtype(enum vtype vtype)
enum vtype;
int mkfile(struct Xconn *, enum vtype, mode_t, uid_t, gid_t, fileid_t *);
int mklinkfile(struct Xconn *, fileid_t, const char *, enum vtype, mode_t,
int mklinkfile_lo(struct Xconn *, fileid_t, const char *, enum vtype, mode_t,
#define SPARC64_LD_DEF(ld, type, vtype) \
vtype _v; \
#define SPARC64_LD_DEF(ld, type, vtype) \
vtype _v; \
#define SPARC64_LD_DEF(ld, type, vtype) \
vtype _v; \
#define SPARC64_LD_DEF(ld, type, vtype) \
vtype _v; \
int vtype;
int vtype;
/*out*/ CodaFid *VFid, int *vtype)
*vtype = outp->vtype;
/*out*/ CodaFid *VFid, int *vtype)
*vtype = outp->vtype;
/*out*/ CodaFid *VFid, int *vtype);
/*out*/ CodaFid *VFid, int *vtype);
int vtype;
error = venus_fhtovp(vftomi(vfsp), &cfid->cfid_fid, l->l_cred, l->l_proc, &VFid, &vtype);
coda_f2s(&VFid), vtype, error)); )
cp = make_coda_node(&VFid, vfsp, vtype);
int vtype;
&vtype);
__func__, coda_f2s(&VFid), vtype, error)); )
cp = make_coda_node(&VFid, dvp->v_mount, vtype);
if (!(vtype & CODA_NOCACHE))
static uint32_t inotify_mask_to_kevent_fflags(uint32_t, enum vtype);
static int kevent_to_inotify(struct inotifyfd *, int, enum vtype, uint32_t,
inotify_mask_to_kevent_fflags(uint32_t mask, enum vtype type)
kevent_to_inotify(struct inotifyfd *ifd, int wd, enum vtype wtype,
dkwedge_compute_pdev(const char *pname, dev_t *pdevp, enum vtype type)
enum vtype hfs_catalog_keyed_record_vtype(const hfs_catalog_keyed_record_t *);
enum vtype
extern enum vtype newnv2tov_type[8];
extern enum vtype nv34tov_type[8];
u_int32_t rdev, enum vtype vtyp, struct ucred *cred, NFSPROC_T *p,
extern enum vtype nv3tov_type[];
enum vtype type, acl_perm_t *permp)
enum vtype, int, int, struct acl_entry *);
enum vtype type, int group, int owner, struct acl_entry *ace)
nfsrv_buildacl(struct nfsrv_descript *nd, NFSACL_T *aclp, enum vtype type,
enum vtype type, acl_perm_t *permp);
enum vtype newnv2tov_type[8] = { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VNON, VNON };
enum vtype nv34tov_type[8]={ VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO };
int nfsrv_buildacl(struct nfsrv_descript *, NFSACL_T *, enum vtype,
enum vtype, struct kauth_cred *, NFSPROC_T *, struct nfsvattr *,
enum vtype vtyp;
enum vtype vtyp = VNON;
extern enum vtype nv34tov_type[8];
enum vtype vtyp;
enum vtype f_type = VBAD;
enum vtype pvnr_vtype; /* IN */
enum vtype va_type;
enum vtype pvfsr_vtype; /* IN */
enum vtype pa_root_vtype;
enum vtype pvfsr_vtype; /* IN */
enum vtype pvnr_vtype; /* IN */
puffs_getvnode(struct mount *mp, puffs_cookie_t ck, enum vtype type,
enum vtype type, dev_t rdev)
puffs_getvnode1(struct mount *mp, puffs_cookie_t ck, enum vtype type,
enum vtype pmp_root_vtype;
int puffs_getvnode(struct mount *, puffs_cookie_t, enum vtype,
enum vtype, dev_t);
enum vtype tn_type;
enum vtype vt = vap->va_type;
static enum vtype
enum vtype table[] = { VCHR, VDIR, VBLK, VREG, VLNK, VSOCK };
static enum vtype v7fs_mode_to_vtype(v7fs_mode_t mode);
static v7fs_mode_t vtype_to_v7fs_mode(enum vtype);
vtype_to_v7fs_mode(enum vtype type)
vtype2dt(enum vtype vt)
const enum vtype iftovt_tab[16] = {
vfinddev(dev_t dev, enum vtype type, vnode_t **vpp)
vdevgone(int maj, int minl, int minh, enum vtype type)
enum vtype type;
enum vtype vt;
#define KERNFS_INITENTRY(dkt, type, name, data, tag, vtype, mode) do { \
(dkt)->dkt_kt.kt_vtype = (vtype); \
spec_node_lookup_by_dev(enum vtype type, dev_t dev, int flags, vnode_t **vpp)
int spec_node_lookup_by_dev(enum vtype, dev_t, int, vnode_t **);
enum vtype vtyp;
enum vtype vtyp;
extern const enum vtype nv3tov_type[8];
const enum vtype nv2tov_type[8] =
const enum vtype nv3tov_type[8] =
extern const enum vtype nv2tov_type[8];
extern const enum vtype nv3tov_type[8];
rump_getvninfo(struct vnode *vp, enum rump_vtype *vtype,
*vtype = (enum rump_vtype)vp->v_type;
vap->va_type = (enum vtype)vt;
static struct rumpfs_node *makeprivate(enum vtype, mode_t, dev_t, off_t, bool);
static enum vtype
enum vtype vt;
static enum vtype
enum vtype vt;
makeprivate(enum vtype vt, mode_t mode, dev_t rdev, off_t size, bool et)
enum vtype va_type; /* vnode type (for create) */
#define FS_OBJECT_CAN_EXEC(vtype, mode) (((vtype) == VDIR) || \
enum vtype v_type; /* - vnode type */
enum vtype va_type; /* vnode type (for create) */
extern const enum vtype iftovt_tab[];
void vdevgone(int, int, int, enum vtype);
int vfinddev(dev_t, enum vtype, struct vnode **);
uint8_t vtype2dt(enum vtype);
struct componentname *, enum vtype );
#define CHTTOVT(ch_type) (enum vtype)(ch_type)
struct componentname *cnp, enum vtype type)
quota2_check(struct inode *ip, int vtype, int64_t change, kauth_cred_t cred,
q2vp = &q2e[i]->q2e_val[vtype];
lfsquota2_ulfs_rwq2v(&q2e[i]->q2e_val[vtype], &q2v, needswap);
KAUTH_ARG(i), KAUTH_ARG(vtype), NULL) != 0) {
if ((dq->dq_flags & DQ_WARN(vtype)) == 0) {
lfs_quotatypes[i], limnames[vtype]);
dq->dq_flags |= DQ_WARN(vtype);
if ((dq->dq_flags & DQ_WARN(vtype)) == 0) {
lfs_quotatypes[i], limnames[vtype]);
dq->dq_flags |= DQ_WARN(vtype);
if ((dq->dq_flags & DQ_WARN(vtype)) == 0) {
lfs_quotatypes[i], limnames[vtype]);
dq->dq_flags |= DQ_WARN(vtype);
lfsquota2_ulfs_rwq2v(&q2v, &q2e[i]->q2e_val[vtype],
q2vp = &q2e[i]->q2e_val[vtype];
quota2_check(struct inode *ip, int vtype, int64_t change, kauth_cred_t cred,
q2vp = &q2e[i]->q2e_val[vtype];
quota2_ufs_rwq2v(&q2e[i]->q2e_val[vtype], &q2v, needswap);
KAUTH_ARG(i), KAUTH_ARG(vtype), NULL) != 0) {
if ((dq->dq_flags & DQ_WARN(vtype)) == 0) {
quotatypes[i], limnames[vtype]);
dq->dq_flags |= DQ_WARN(vtype);
if ((dq->dq_flags & DQ_WARN(vtype)) == 0) {
quotatypes[i], limnames[vtype]);
dq->dq_flags |= DQ_WARN(vtype);
if ((dq->dq_flags & DQ_WARN(vtype)) == 0) {
quotatypes[i], limnames[vtype]);
dq->dq_flags |= DQ_WARN(vtype);
quota2_ufs_rwq2v(&q2v, &q2e[i]->q2e_val[vtype],
q2vp = &q2e[i]->q2e_val[vtype];
const struct puffs_cn *, enum vtype);
void dtfs_baseattrs(struct vattr *, enum vtype, ino_t);
dtfs_baseattrs(struct vattr *vap, enum vtype type, ino_t id)
enum vtype type)
enum vtype vt;
int (*pfunc)(struct puffs_usermount *, const char *, enum vtype);
rtstr(struct puffs_usermount *pu, const char *str, enum vtype vt)
rtdev(struct puffs_usermount *pu, const char *str, enum vtype vt)
rtnorm(struct puffs_usermount *pu, const char *str, enum vtype vt)
struct vtype *vt = emalloc(sizeof(*vt));
struct vtype *vt = v;
getftype(enum vtype v_type)
mode_t getftype(enum vtype);
const struct vattr *vap, const char *filename, enum vtype vt)
const struct vattr *, const char *, enum vtype);
enum vtype vt;