The machine is a standard Intel Pentium PC.
The section of /proc/pci I am interested in, looks like this:-
Bus 0, device 15, function 0
Unknown class: Unknown vendor Unknown device (rev 1).
Vendor id=135a. Device id=61.
Medium devsel. Fast back-to-back capable. IRQ 9
Non-prefetchable 32 bit memory at 0x412000000
I/O at 0x2080
I/O at 0x2400
I/O at 0x2410
Blah..
Blah..
I am interested in seeking out devices with this vendor and
device id and then getting just the I/O entires (just 2nd and 3rd though, not interested in the first.
I tried the posted example but got:
Name "main::DATA" used only once: possible type at line 6
readline() on closed filehandle main::DATA at line 6..
Ahhh...
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|