Lines Matching refs:path_len
378 long path_len = 0; in do_open() local
380 path_len = strnlen_user(filename, PAGE_4K_SIZE) + 1; in do_open()
382 path_len = strnlen(filename, PAGE_4K_SIZE) + 1; in do_open()
384 if (path_len <= 0) // 地址空间错误 in do_open()
386 else if (path_len >= PAGE_4K_SIZE) // 名称过长 in do_open()
390 char *path = (char *)kzalloc(path_len, 0); in do_open()
395 strncpy_from_user(path, filename, path_len); in do_open()
397 strncpy(path, filename, path_len); in do_open()
400 if (path_len >= 2 && path[path_len - 2] == '/') in do_open()
402 path[path_len - 2] = '\0'; in do_open()
403 --path_len; in do_open()
412 for (int i = path_len - 1; i >= 0; --i) in do_open()
439 dentry = vfs_alloc_dentry(path_len - tmp_index); in do_open()
441 dentry->name_length = path_len - tmp_index - 2; in do_open()