Fix USB/IP import lease and attach races

This commit is contained in:
世界
2026-04-25 05:08:36 +08:00
parent ff9336435e
commit d690a17780
8 changed files with 405 additions and 35 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ type usbipOps struct {
writeUsbipSockfd func(busid string, fd int) error
newUEventListener func() (usbEventListener, error)
vhciPickFreePort func(speed uint32) (int, error)
vhciPickFreePort func(speed uint32, skip map[int]struct{}) (int, error)
vhciAttach func(port int, fd uintptr, devid uint32, speed uint32) error
vhciDetach func(port int) error
}