number of /dev/usb nodes

Chuck Robey chuckr at telenix.org
Sun Jun 29 19:42:15 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hans Petter Selasky wrote:
> Hi,
> 
> I am about to set the following USB limits:
> 
> #define	USB_BUS_MAX 256			/* units */
> #define	USB_DEV_MAX 128			/* units */
> #define	USB_IFACE_MAX 32		/* units */
> #define	USB_EP_MAX (2*16)		/* hardcoded */
> #define	USB_FIFO_MAX (2 * USB_EP_MAX)
> 
> The multiplication product of (BUS*DEV*IFACE*FIFO) must fit within a 32-bit 
> unsigned integer.
> 
> Any objections ?
> 
> --HPS

I don't recognize what the USB_EP_MAX means ... Endpoints?  If so, I would
personally use a longer abbreviation, but that's a pretty weak objection.  The
rest is fine.  Where's this going?  usb.h?  Then the usb(4) man page probably
ought to show it also.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhn4w8ACgkQz62J6PPcoOmTDwCdGZlKNKB5RGS3zeKWiAEmjzSU
AMEAoI1rmpQY0jb4mQcTjT/i4cgnLrkR
=RSqg
-----END PGP SIGNATURE-----


More information about the freebsd-usb mailing list