Lines Matching refs:dir

2068 /*!	Looks up the entry with name \a name in the directory represented by \a dir
2073 lookup_dir_entry(struct vnode* dir, const char* name, struct vnode** _vnode)
2077 if (dir->mount->entry_cache.Lookup(dir->id, name, id))
2078 return get_vnode(dir->device, id, _vnode, true, false);
2080 status_t status = FS_CALL(dir, lookup, name, &id);
2087 *_vnode = lookup_vnode(dir->device, id);
2092 " vnid 0x%" B_PRIx64 ")\n", dir->device, id);
2096 // ktrace_printf("lookup_dir_entry(): dir: %p (%ld, %lld), name: \"%s\" -> "
2097 // "%p (%ld, %lld)", dir, dir->mount->id, dir->id, name, *_vnode,
2275 // decrease the ref count on the old dir we just looked up into
2654 // the root dir will result in an empty path: fix it
2869 struct vnode* dir = NULL;
2873 // get dir vnode + leaf name
2876 error = vnode_and_path_to_dir_vnode(dir, path, &nextDir, leaf, kernel);
2880 dir = nextDir;
2882 dirPutter.SetTo(dir);
2889 inc_vnode_ref_count(dir);
2890 if (vnode_path_to_vnode(dir, path, false, 0, kernel, &fileVnode,
2901 // special cases "." and ".." -- get the dir, forget the leaf
2902 inc_vnode_ref_count(dir);
2903 error = vnode_path_to_vnode(dir, leaf, false, 0, kernel,
2907 dir = nextDir;
2908 dirPutter.SetTo(dir);
2913 error = dir_vnode_to_path(dir, path, B_PATH_NAME_LENGTH, kernel);
4240 struct vnode* dir;
4250 status = path_to_vnode(pathBuffer, true, &dir, NULL, true);
4280 status = vnode_path_to_vnode(dir, path, true, 0, true, &file, NULL);
4282 // vnode_path_to_vnode() has already released the reference to dir
4293 dir = file;
4303 dir = file;
4313 put_vnode(dir);
4391 // We've got a path. Get the dir vnode and the leaf name.
4400 // get the dir vnode and the leaf name
4683 // get the vnode matching the dir's node_ref
5722 // open the dir
8307 of the FD (node, attr, attr dir etc.) is performed. If only \a path is
8352 of the FD (node, attr, attr dir etc.) is performed. If only \a path is
8866 // open the parent dir
9183 struct vnode* dir;
9184 status_t status = fd_and_path_to_dir_vnode(fd, path, &dir, filename, false);
9188 VNodePutter _(dir);
9191 if (!HAS_FS_CALL(dir, create_special_node))
9197 status = FS_CALL(dir, create_special_node, filename, NULL,
9202 put_vnode(dir->mount->volume, nodeID);