Searched refs:attrpath (Results 1 – 2 of 2) sorted by relevance
/linux-3.4.99/drivers/staging/usbip/userspace/libsrc/ |
D | usbip_common.c | 114 char attrpath[SYSFS_PATH_MAX]; in read_attr_value() local 119 snprintf(attrpath, sizeof(attrpath), "%s/%s", dev->path, name); in read_attr_value() 121 attr = sysfs_open_attribute(attrpath); in read_attr_value() 123 dbg("sysfs_open_attribute failed: %s", attrpath); in read_attr_value() 148 char attrpath[SYSFS_PATH_MAX]; in read_attr_speed() local 153 snprintf(attrpath, sizeof(attrpath), "%s/%s", dev->path, "speed"); in read_attr_speed() 155 attr = sysfs_open_attribute(attrpath); in read_attr_speed() 157 dbg("sysfs_open_attribute failed: %s", attrpath); in read_attr_speed()
|
D | usbip_host_driver.c | 38 char attrpath[SYSFS_PATH_MAX]; in read_attr_usbip_status() local 59 snprintf(attrpath, SYSFS_PATH_MAX, "%s/%s:%d.%d/usbip_status", in read_attr_usbip_status() 63 if (stat(attrpath, &s) == 0) in read_attr_usbip_status() 67 dbg("stat failed: %s", attrpath); in read_attr_usbip_status() 82 attr = sysfs_open_attribute(attrpath); in read_attr_usbip_status() 84 dbg("sysfs_open_attribute failed: %s", attrpath); in read_attr_usbip_status() 90 dbg("sysfs_read_attribute failed: %s", attrpath); in read_attr_usbip_status()
|