Home
last modified time | relevance | path

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

/external/libusb/libusb/os/
Dlinux_usbfs.c993 char *parent_sysfs_dir, *tmp; in linux_get_parent_info() local
1002 parent_sysfs_dir = strdup(sysfs_dir); in linux_get_parent_info()
1003 if (NULL == parent_sysfs_dir) { in linux_get_parent_info()
1006 if (NULL != (tmp = strrchr(parent_sysfs_dir, '.')) || in linux_get_parent_info()
1007 NULL != (tmp = strrchr(parent_sysfs_dir, '-'))) { in linux_get_parent_info()
1012 parent_sysfs_dir); in linux_get_parent_info()
1013 free (parent_sysfs_dir); in linux_get_parent_info()
1018 if (NULL == strchr(parent_sysfs_dir, '-')) { in linux_get_parent_info()
1019 tmp = parent_sysfs_dir; in linux_get_parent_info()
1020 ret = asprintf (&parent_sysfs_dir, "usb%s", tmp); in linux_get_parent_info()
[all …]