Re: [RFC PATCH 2/4] rust: usb: add usb host interface and endpoint abstractions
From: Oliver Neukum
Date: Tue Jul 14 2026 - 13:57:38 EST
On 14.07.26 18:26, Alan Stern wrote:
At first I thought that we ought to have such a guarantee. But in fact
we don't, because the user can at any time write to a USB device's
bConfigurationValue sysfs attribute even if the device isn't bound to a
driver. This can create interfaces which may then be bound to drivers.
I just tried it and it worked.
This wasn't the original intent, but I don't see any good reason to
prevent people from doing it.
I hardly dare ask, but what happens if you unplug the device?
Regards
Oliver