//go:build !linux package usb import "fmt" // Adopting an external file descriptor only makes sense where devices are // driven through usbdevfs, which is Linux-only. func AdoptDeviceFD(busID string, fd int) error { return fmt.Errorf("adopting USB file descriptors is only supported on Linux") } func takeAdoptedFD(busID string) (int, bool) { return 0, false } func HasAdoptedFD(busID string) bool { return false } func ReleaseAdoptedFDs() {}