Lines Matching refs:parent
414 const char *parent; in get_character_device_symlinks() local
431 parent = strchr(uevent->path + pdev->path_len, '/'); in get_character_device_symlinks()
432 if (!parent) in get_character_device_symlinks()
435 if (!strncmp(parent, "/usb", 4)) { in get_character_device_symlinks()
437 while (*++parent && *parent != '/'); in get_character_device_symlinks()
438 if (*parent) in get_character_device_symlinks()
439 while (*++parent && *parent != '/'); in get_character_device_symlinks()
440 if (!*parent) in get_character_device_symlinks()
442 slash = strchr(++parent, '/'); in get_character_device_symlinks()
445 width = slash - parent; in get_character_device_symlinks()
449 if (asprintf(&links[link_num], "/dev/usb/%s%.*s", uevent->subsystem, width, parent) > 0) in get_character_device_symlinks()