Searched refs:d_name (Results 1 – 10 of 10) sorted by relevance
| /tools/libs/stat/ |
| A D | xenstat_linux.c | 79 if ((strlen(de->d_name) > 0) && (de->d_name[0] != '.') in getBridge() 80 && (strstr(de->d_name, excludeName) == NULL)) { in getBridge() 81 sprintf(tmp, "/sys/class/net/%s/bridge", de->d_name); in getBridge() 90 memcpy(result, de->d_name, MIN(strnlen(de->d_name, in getBridge() 474 ret = sscanf(dp->d_name, "%255[^-]-%u-%u", buf, &domid, &vbd.dev); in xenstat_collect_vbds() 503 if ((read_attributes_vbd(dp->d_name, "statistics/oo_req", buf, 256)<=0) || in xenstat_collect_vbds() 505 (read_attributes_vbd(dp->d_name, "statistics/rd_req", buf, 256)<=0) || in xenstat_collect_vbds() 507 (read_attributes_vbd(dp->d_name, "statistics/wr_req", buf, 256)<=0) || in xenstat_collect_vbds() 509 (read_attributes_vbd(dp->d_name, "statistics/rd_sect", buf, 256)<=0) || in xenstat_collect_vbds() 511 (read_attributes_vbd(dp->d_name, "statistics/wr_sect", buf, 256)<=0) || in xenstat_collect_vbds()
|
| /tools/libfsimage/common/ |
| A D | fsimage_plugin.c | 154 if (strcmp(dp->d_name, ".") == 0) in fsi_init() 156 if (strcmp(dp->d_name, "..") == 0) in fsi_init() 160 dp->d_name); in fsi_init()
|
| /tools/libs/light/ |
| A D | libxl_linux.c | 258 if (entry->d_name[0] == '.') in libxl__pci_numdevs() 286 if (entry->d_name[0] == '.') in libxl__pci_topology_init() 296 if (sscanf(entry->d_name, "%x:%x:%x.%d", &dom, &bus, &dev, &func) < 4) { in libxl__pci_topology_init()
|
| A D | libxl_usb.c | 856 if (!strcmp(de->d_name, ".") || in usbdev_busaddr_to_busid() 857 !strcmp(de->d_name, "..")) in usbdev_busaddr_to_busid() 860 filename = GCSPRINTF(SYSFS_USB_DEV "/%s/devnum", de->d_name); in usbdev_busaddr_to_busid() 864 filename = GCSPRINTF(SYSFS_USB_DEV "/%s/busnum", de->d_name); in usbdev_busaddr_to_busid() 869 busid = libxl__strdup(gc, de->d_name); in usbdev_busaddr_to_busid() 1491 if (!strcmp(de->d_name, ".") || in usbdev_get_all_interfaces() 1492 !strcmp(de->d_name, "..")) in usbdev_get_all_interfaces() 1495 if (!strncmp(de->d_name, buf, strlen(buf))) { in usbdev_get_all_interfaces() 1497 (*intfs)[*num] = libxl__strdup(gc, de->d_name); in usbdev_get_all_interfaces()
|
| A D | libxl_utils.c | 564 if (!strcmp(de->d_name, ".") || in libxl__remove_directory() 565 !strcmp(de->d_name, "..")) in libxl__remove_directory() 568 const char *subpath = GCSPRINTF("%s/%s", dirpath, de->d_name); in libxl__remove_directory()
|
| A D | libxl_pci.c | 459 if (sscanf(de->d_name, PCI_BDF, &dom, &bus, &dev, &func) != 4) in libxl_device_pci_assignable_list() 1000 if ( sscanf(de->d_name, PCI_BDF, &dom, &bus, &dev, &func) != 4 ) in pci_multifunction_check()
|
| /tools/xenpmd/ |
| A D | xenpmd.c | 113 if ( strlen(dir_entries->d_name) < 4 ) in get_next_battery_file() 117 dir_entries->d_name); in get_next_battery_file() 120 dir_entries->d_name); in get_next_battery_file()
|
| /tools/libfsimage/ufs/ |
| A D | ufs.h | 203 char d_name[MAXNAMELEN + 1]; member
|
| A D | fsys_ufs.c | 258 if (dp->d_ino && substring(name, dp->d_name) == 0) in dlook()
|
| /tools/9pfsd/ |
| A D | io.c | 1319 if ( fstatat(fidp->fd, dirent->d_name, &st, 0) < 0 ) in p9_read() 1321 fill_p9_stat(device, &p9s, &st, dirent->d_name); in p9_read()
|
Completed in 33 milliseconds