LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2013, 05:36 AM   #1
anantha1985
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
No chain to parent device udevadm info output


hi,
i am using pci card on linux 2.6.24.2 after installing driver ,i checked card is working fine,
when i entered udevadm info -a -p 'udevadm info -q path -n /dev/adtpm0'
i got the output as,


looking at device '/class/altapmc1553/adtpmc0':
KERNEL=="adtpmc0"
SUBSYSTEM=="altapmc1553"
DRIVER==""
ATTR{dev}=="252:0"
The problem is the udevadm info not providing the info of parent device.

i wanted to give different name for same card when it is connected to another pci slot(different pci bus address) and it is not possible without info about parent device because the udevadm info is same for different pci slots.

Please suggest me why the udevadm info not providing the parent device info and to resolve the problem ASAP.
 
Old 02-15-2013, 05:35 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Did you read the manpage ?. udevadm gave you what you asked for.
Try "--attribute-walk"
 
1 members found this post helpful.
Old 02-18-2013, 12:28 AM   #3
anantha1985
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi sir,


yes,i read the man page ,and i also tried with the below command,

# udevadm info --name=/dev/adtpmc0 --attribute-walk

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/class/altapmc1553/adtpmc0':
KERNEL=="adtpmc0"
SUBSYSTEM=="altapmc1553"
DRIVER==""
ATTR{dev}=="252:0"

#


i got only this much information,please suggest me sir.
 
  


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
chain ziproxy to a parent proxy with authentication igoryonya Linux - Networking 0 07-17-2012 05:00 PM
udevadm info -a -p , how to work with it ? hen770 Linux - Desktop 0 09-18-2011 05:18 PM
Difference in Kernel output between USB key vs USB HDD...using udevadm samaresh4 Linux - Kernel 0 05-19-2010 07:43 PM
LFS 7.11 udevadm test Unable to open device /sys/block/hd dadrunamok Linux From Scratch 2 01-17-2010 07:31 PM
Alsa output device info needed for mythtv. zonen Slackware 2 05-11-2005 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 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