Lines Matching refs:vp
83 struct Vnode *vp = NULL; in opendir() local
89 ret = VnodeLookup(path, &vp, 0); in opendir()
90 if (vp == NULL || ret != OK) in opendir()
95 if (vp->type != VNODE_TYPE_DIR) in opendir()
103 vp->useCount++; in opendir()
122 if (vp->vop != NULL && vp->vop->Opendir != NULL) in opendir()
124 ret = vp->vop->Opendir(vp, dir); in opendir()
136 dir->fd_root = vp; in opendir()
144 vp->useCount--; in opendir()
155 struct Vnode *vp = NULL; in do_opendir() local
185 ret = VnodeLookup(path, &vp, 0); in do_opendir()
191 if (vp->type != VNODE_TYPE_DIR) in do_opendir()
197 vp->useCount++; in do_opendir()
200 filep = files_allocate(vp, oflags, 0, NULL, FILE_START_FD); in do_opendir()
217 if (vp->vop != NULL && vp->vop->Opendir != NULL) in do_opendir()
219 ret = vp->vop->Opendir(vp, dir); in do_opendir()
232 dir->fd_root = vp; in do_opendir()
246 vp->useCount--; in do_opendir()