6 #include "sysfs_utils.h"
7 #include "usbip_common.h"
9 int write_sysfs_attribute(const char *attr_path, const char *new_value,
15 fd = open(attr_path, O_WRONLY);
17 dbg("error opening attribute %s", attr_path);
21 length = write(fd, new_value, len);
23 dbg("error writing to attribute %s", attr_path);