Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c157 int tmp_path_len = path - tmp_path; in vfs_path_walk() local
160 char *tmpname = kzalloc(tmp_path_len + 1, 0); in vfs_path_walk()
161 strncpy(tmpname, tmp_path, tmp_path_len); in vfs_path_walk()
162 tmpname[tmp_path_len] = '\0'; in vfs_path_walk()
172 dentry = vfs_alloc_dentry(tmp_path_len + 1); in vfs_path_walk()
174 memcpy(dentry->name, (void *)tmp_path, tmp_path_len); in vfs_path_walk()
175 dentry->name[tmp_path_len] = '\0'; in vfs_path_walk()
177 dentry->name_length = tmp_path_len; in vfs_path_walk()