Date: Sun, 8 Jun 2008 15:42:28 +0200 From: Bernd Walter <ticso@cicely7.cicely.de> To: Chuck Robey <chuckr@telenix.org> Cc: FreeBSD-Hackers <freebsd-hackers@freebsd.org> Subject: Re: number of /dev/usb nodes Message-ID: <20080608134227.GM71712@cicely7.cicely.de> In-Reply-To: <484AC2F1.1000806@telenix.org> References: <484AC2F1.1000806@telenix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 07, 2008 at 01:18:41PM -0400, Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I can't seem to find how many /dev/usbN bus devices there can be. I'm writing > some code that scans them all looking for anything that has my device, but I > while I know to start at usb0, just how high do I go? There seem to be 128 > device minors, is that the number? (from dev/usb/usb.h) There shouldn't be a limit anymore. I can't see any definition of 128 in usb.h that limits the number of busses. The major/minor differenciation is long time ago. You must be looking at old code. -- B.Walter <bernd@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080608134227.GM71712>