Lines Matching refs:busid
39 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument
68 host, port, busid); in record_connection()
120 static int query_import_device(int sockfd, char *busid) in query_import_device() argument
138 strncpy(request.busid, busid, SYSFS_BUS_ID_SIZE-1); in query_import_device()
152 busid, usbip_op_common_status_string(status)); in query_import_device()
165 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { in query_import_device()
166 err("recv different busid %s", reply.udev.busid); in query_import_device()
174 static int attach_device(char *host, char *busid) in attach_device() argument
186 rhport = query_import_device(sockfd, busid); in attach_device()
192 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device()
210 char *busid = NULL; in usbip_attach() local
226 busid = optarg; in usbip_attach()
233 if (!host || !busid) in usbip_attach()
236 ret = attach_device(host, busid); in usbip_attach()