mode_t fmode = (vp->v_flag & VROOT) ? DIR_MODE : VTOKERN(vp)->kf_kt->kt_mode;
mode_t fmode = (vp->v_flag & VROOT) ? DIR_MODE : VTOKERN(vp)->kf_mode;
kernfs_access(v)	void *v;{	struct vop_access_args /* {		struct vnode *a_vp;		int a_mode;		struct ucred *a_cred;		struct proc *a_p;	} */ *ap = v;	struct vnode *vp = ap->a_vp;	mode_t fmode =	    (vp->v_flag & VROOT) ? DIR_MODE : VTOKERN(vp)->kf_kt->kt_mode;	return (vaccess(fmode, (uid_t)0, (gid_t)0, ap->a_mode, ap->a_cred));}