Lines Matching refs:busid
38 static int bind_usbip(char *busid) in bind_usbip() argument
48 rc = write_sysfs_attribute(bind_attr_path, busid, strlen(busid)); in bind_usbip()
50 err("error binding device %s to driver: %s", busid, in bind_usbip()
59 static int unbind_other(char *busid) in unbind_other() argument
76 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_other()
78 dbg("unable to find device with bus ID %s", busid); in unbind_other()
113 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_other()
115 err("error unbinding device %s from driver", busid); in unbind_other()
130 static int bind_device(char *busid) in bind_device() argument
139 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in bind_device()
154 rc = unbind_other(busid); in bind_device()
156 err("could not unbind driver from device on busid %s", busid); in bind_device()
159 err("device on busid %s is already bound to %s", busid, in bind_device()
164 rc = modify_match_busid(busid, 1); in bind_device()
166 err("unable to bind device on %s", busid); in bind_device()
170 rc = bind_usbip(busid); in bind_device()
173 modify_match_busid(busid, 0); in bind_device()
177 info("bind device on busid %s: complete", busid); in bind_device()