Lines Matching refs:pathlen
248 uint32_t pathlen; in vfs_mkdir() local
251 pathlen = strnlen_user(path, PAGE_4K_SIZE - 1); in vfs_mkdir()
253 pathlen = strnlen(path, PAGE_4K_SIZE - 1); in vfs_mkdir()
255 if (pathlen == 0) in vfs_mkdir()
261 for (int i = pathlen - 2; i >= 0; --i) in vfs_mkdir()
302 struct vfs_dir_entry_t *subdir_dentry = vfs_alloc_dentry(pathlen - last_slash); in vfs_mkdir()
304 if (path[pathlen - 1] == '/') in vfs_mkdir()
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()
631 uint32_t pathlen; in vfs_rmdir() local
634 pathlen = strnlen_user(path, PAGE_4K_SIZE - 1); in vfs_rmdir()
636 pathlen = strnlen(path, PAGE_4K_SIZE - 1); in vfs_rmdir()
638 if (pathlen == 0) in vfs_rmdir()
644 for (int i = pathlen - 1; i >= 0; --i) in vfs_rmdir()
783 uint32_t pathlen; in do_unlink_at() local
786 pathlen = strnlen_user(pathname, PAGE_4K_SIZE - 1); in do_unlink_at()
788 pathlen = strnlen(pathname, PAGE_4K_SIZE - 1); in do_unlink_at()
790 if (pathlen == 0) in do_unlink_at()
796 for (int i = pathlen - 1; i >= 0; --i) in do_unlink_at()