Lines Matching refs:root
125 static errval_t alloc_vnode_noalloc(struct pmap_x86 *pmap, struct vnode *root,
141 err = vnode_map(root->v.cap, newvnode->v.cap, entry,
152 newvnode->v.meta.next = root->v.u.vnode.children;
153 root->v.u.vnode.children = newvnode;
157 root->v.u.vnode.children[entry] = newvnode;
166 static errval_t alloc_vnode(struct pmap_x86 *pmap, struct vnode *root,
179 return alloc_vnode_noalloc(pmap, root, vnodecap, entry, retvnode);
183 static struct vnode *find_vnode(struct vnode *root, uint16_t entry)
185 assert(root != NULL);
186 assert(root->v.is_vnode);
189 for(n = root->v.u.vnode.children; n != NULL; n = n->v.meta.next) {
216 static struct vnode *find_vnode(struct vnode *root, uint16_t entry)
218 assert(root != NULL);
219 assert(root->v.is_vnode);
222 if (root->v.u.vnode.children) {
223 return root->v.u.vnode.children[entry];
328 struct vnode *root = &pmap->root;
330 *pdpt = find_vnode(root, entry);
336 err = alloc_vnode(pmap, root, ObjType_VNode_x86_64_pdpt, entry,
496 cow_root_pte = find_vnode(&x86->root, pml4e);
505 err = vnode_clone(x86, &x86->root, new_pml4e,