device enumeration

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-usb-devel@...>
Date: Friday, October 5, 2007 - 9:50 am

Is there a way to specify the order in which devices are detected on bootup?
It doesn't look like it to me, but I'm not sure I understand the code well
enough to say.

We have a board running linux 2.6, which always seems to discover an
external usb key first if one is there. This gets assigned to /dev/sda1, and
the internal usb flash gets assigned to /dev/sdb1.

However, if a key isn't plugged in, the internal flash gets assigned to
/dev/sda1. Our software needs a way to tell which device file is associated
with the internal flash.

I can root around in /sys and get an answer, but I'm hoping there's a better
way. Incidentally, this board does not run udev, so that's not an option
unfortunately.

Thanks

Joe

-- 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
device enumeration, jhalpin, (Fri Oct 5, 9:50 am)
Re: device enumeration, Alan Stern, (Fri Oct 5, 11:35 am)
Re: device enumeration, Alan Cox, (Fri Oct 5, 10:46 am)
Re: device enumeration, Joe Halpin, (Fri Oct 5, 10:46 am)