Home
last modified time | relevance | path

Searched refs:subdir_dentry (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c302 struct vfs_dir_entry_t *subdir_dentry = vfs_alloc_dentry(pathlen - last_slash); in vfs_mkdir() local
305 subdir_dentry->name_length = pathlen - last_slash - 2; in vfs_mkdir()
307 subdir_dentry->name_length = pathlen - last_slash - 1; in vfs_mkdir()
309 … for (int i = last_slash + 1, cnt = 0; i < pathlen && cnt < subdir_dentry->name_length; ++i, ++cnt) in vfs_mkdir()
310 subdir_dentry->name[cnt] = path[i]; in vfs_mkdir()
312 subdir_dentry->parent = parent_dir; in vfs_mkdir()
316 retval = parent_dir->dir_inode->inode_ops->mkdir(parent_dir->dir_inode, subdir_dentry, 0); in vfs_mkdir()
334 list_append(&parent_dir->subdirs_list, &subdir_dentry->child_node_list); in vfs_mkdir()
340 list_append(&parent_dir->subdirs_list, &subdir_dentry->child_node_list); in vfs_mkdir()