Lines Matching defs:port
24 " -p, --port=<port> " USBIP_VHCI_DRV_NAME
25 " port the device is on\n";
32 static int detach_port(char *port)
41 unsigned int port_len = strlen(port);
44 if (!isdigit(port[i])) {
45 err("invalid port %s", port);
49 portnum = atoi(port);
57 /* check for invalid port */
61 if (idev->port == portnum) {
65 info("Port %d is already detached!\n", idev->port);
71 err("Invalid port %s > maxports %d",
72 port, vhci_driver->nports);
76 /* remove the port state file */
77 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", portnum);
99 { "port", required_argument, NULL, 'p' },