LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2005, 04:43 PM   #1
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
How are USB ports assigned?


I have seen hints of this, but never the "whole story". What is the definitive way of knowing what device corresponds to an entry in /dev?
I'm asking about all devices, but the question comes up most often for usb.
 
Old 12-13-2005, 10:17 AM   #2
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
If you are using udev, and AFAIK most modern distros are, the udevinfo tool is quite useful for finding all kinds of information about a device node.

Code:
udevinfo -a -p $(udevinfo -q path -n /dev/device)
Check out http://www.reactivated.net/writing_udev_rules.html for a bit more info on how this works.

Edit: i guess that's not really a definitive way.. just a hit that'll work pretty much all of the time
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Ports dudeman41465 Linux - Hardware 1 10-12-2005 02:18 AM
USB 2.0 ports detected as USB 1.1 on Fedora Core 3 vbvamsi Linux - Hardware 1 10-09-2005 06:26 PM
Fuji M603, SCSI device not assigned via USB anotherlimey Linux - Laptop and Netbook 5 03-14-2004 02:13 AM
What are the USB ports? Jongi Linux - Hardware 7 08-29-2003 11:48 AM
USB ports JZaragozaAlberich Linux - Newbie 2 03-22-2001 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration