Results 1 to 3 of 3
I have written one program in c language which list out all pci devices using /sys/bus/pci
but there is one problem for /sys. This directory does not exist in Redhat ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-20-2006 #1Just Joined!
- Join Date
- Aug 2006
- Posts
- 48
Pci device listing
I have written one program in c language which list out all pci devices using /sys/bus/pci
but there is one problem for /sys. This directory does not exist in Redhat 9. My program works well on FC5 & FC5. Can any body give me hint from where i can find the pci list.
I know that i can get it from /proc but i don't want to use /proc.
Any Good Suggestion will be apreaciated.
- 11-20-2006 #2
/sys doesn't exist in RH9 because it uses a 2.4 kernel, which has a different driver model (/sys exists only in the 2.6 kernel series). There's the "lspci" command (comes with any distro, no matter what kernel versions), so I guess you could use its output. Or you could just only use it on 2.6 kernels (they're very common now, been around since 2003).
I have sold my soul to the penguin
- 11-22-2006 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Please stop posting the same thread in multiple forums. You can continue your discussion here:
http://www.linuxforums.org/forum/lin...e-listing.htmloz



