Hello,

Manolo de Medici, le mer. 25 nov. 2026 20:58:59 +0100, a ecrit:
> I quickly checked this iteration and I’m left with the impression that there
> are some general issues with design so I’d like to propose you the following.
> 
> I’d use the Linux usbfs as a specification for the Hurd userspace driver api,
> such that we would have a battle tested interface made by experts.

Taking inspiration from usbfs can be useful, yes.

But the problem will be that:

> There are a few things to consider, your arbiter can stay but please check the
> issues with coarse grained  locking. The Linux specification has four ioctl
> that require userspace pointers, the urb and its buffer, those will need to be
> intercepted by glibc and translate to handles, should be straightforward.

It's still hairy. We can really add a hurdish interface and port libusb
on top of it, and applications will be fine with that.

Samuel

Reply via email to