USB stack getting confused

Hans Petter Selasky hps at selasky.org
Thu Mar 14 13:00:46 UTC 2019


On 3/11/19 2:41 PM, Hans Petter Selasky wrote:
>>
>> I have the source code and I can see what the issue is so I'll fix 
>> that, although I am surprised the limit for USB devices is so much 
>> lower than the system limit for file descriptors generally.
>>
> 
> Hi,
> 
> USB has a limit on open FD's per USB device, (USB_FIFO_MAX = 128) / 2 = 64.
> 
> --HPS

Hi Daniel,

There can be up to 127 devices per USB controller, so 127 * 64 FDs is 
the maximum allowed. I think the limit is reasonable, given that 
non-admin users can have access to such devices.

Did you get any further on this issue?

--HPS


More information about the freebsd-hackers mailing list