1 // SPDX-License-Identifier: GPL-2.0
7 #include "sysfs_utils.h"
8 #include "usbip_common.h"
10 int write_sysfs_attribute(const char *attr_path
, const char *new_value
,
16 fd
= open(attr_path
, O_WRONLY
);
18 dbg("error opening attribute %s", attr_path
);
22 length
= write(fd
, new_value
, len
);
24 dbg("error writing to attribute %s", attr_path
);