|
Lines 28-34
static const struct option longopts[] = {
Link Here
|
| 28 |
{NULL, 0, NULL, 0} |
28 |
{NULL, 0, NULL, 0} |
| 29 |
}; |
29 |
}; |
| 30 |
|
30 |
|
| 31 |
static const char match_busid_path[] = "/sys/bus/usb/drivers/usbip/match_busid"; |
31 |
static const char match_busid_path[] = "/sys/bus/usb/drivers/usbip-host/match_busid"; |
| 32 |
|
32 |
|
| 33 |
|
33 |
|
| 34 |
static void show_help(void) |
34 |
static void show_help(void) |
|
Lines 227-235
static int bind_to_usbip(char *busid)
Link Here
|
| 227 |
for (i = 0; i < ninterface; i++) { |
227 |
for (i = 0; i < ninterface; i++) { |
| 228 |
int ret; |
228 |
int ret; |
| 229 |
|
229 |
|
| 230 |
ret = bind_interface(busid, configvalue, i, "usbip"); |
230 |
ret = bind_interface(busid, configvalue, i, "usbip-host"); |
| 231 |
if (ret < 0) { |
231 |
if (ret < 0) { |
| 232 |
g_warning("bind usbip at %s:%d.%d, failed", |
232 |
g_warning("bind usbip-host at %s:%d.%d, failed", |
| 233 |
busid, configvalue, i); |
233 |
busid, configvalue, i); |
| 234 |
failed = 1; |
234 |
failed = 1; |
| 235 |
/* need to contine binding at other interfaces */ |
235 |
/* need to contine binding at other interfaces */ |
|
Lines 261-272
static int use_device_by_usbip(char *busid)
Link Here
|
| 261 |
|
261 |
|
| 262 |
ret = bind_to_usbip(busid); |
262 |
ret = bind_to_usbip(busid); |
| 263 |
if (ret < 0) { |
263 |
if (ret < 0) { |
| 264 |
g_warning("bind usbip to %s, failed", busid); |
264 |
g_warning("bind usbip-host to %s, failed", busid); |
| 265 |
modify_match_busid(busid, 0); |
265 |
modify_match_busid(busid, 0); |
| 266 |
return -1; |
266 |
return -1; |
| 267 |
} |
267 |
} |
| 268 |
|
268 |
|
| 269 |
g_message("bind %s to usbip, complete!", busid); |
269 |
g_message("bind %s to usbip-host, complete!", busid); |
| 270 |
|
270 |
|
| 271 |
return 0; |
271 |
return 0; |
| 272 |
} |
272 |
} |
|
Lines 297-303
static int use_device_by_other(char *busid)
Link Here
|
| 297 |
return -1; |
297 |
return -1; |
| 298 |
} |
298 |
} |
| 299 |
|
299 |
|
| 300 |
g_message("bind %s to other drivers than usbip, complete!", busid); |
300 |
g_message("bind %s to other drivers than usbip-host, complete!", busid); |
| 301 |
|
301 |
|
| 302 |
return 0; |
302 |
return 0; |
| 303 |
} |
303 |
} |