Gentoo Archives: gentoo-dev

From: Greg KH <gregkh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] get pci info in Linux?
Date: Fri, 30 Mar 2007 02:29:19
Message-Id: 20070330020546.GA20900@kroah.com
In Reply to: Re: [gentoo-dev] get pci info in Linux? by Bilanchuk Vitaly
1 On Thu, Mar 29, 2007 at 07:55:18PM +0300, Bilanchuk Vitaly wrote:
2 > > Use the library provided by the lspci package, that is what it is there
3 > > for.
4 >
5 > Ok, thanks for you time.
6 >
7 > > What's wrong with using these interfaces? You can use sysfs and proc
8 > > from a C/C++ program just fine...
9 >
10 > sysfs and proc can be unexisting.
11
12 What Linux distro does not mount sysfs and/or proc? Even embedded
13 systems mount it, as it is required for some things, and does not really
14 save any memory if it is not mounted and/or built into the kernel.
15
16 So relying on them being there is generally acceptable.
17
18 good luck,
19
20 greg k-h
21 --
22 gentoo-dev@g.o mailing list