Isaac wrote:
[...]
> > Just for the record: resource is 399 and config 256 bytes. (Extended config
> > for pci
> > express devices is 4096 bytes.)
> >
>
> Here resource is 4096 bytes.
4096 seems to be the default size of a sysfs entry. Fun with sysfs:
$ cd "/sys/bus/pci/devices/:00:00.0"
$
On Fri, Jul 26, 2013 at 12:56:48PM +0200, Felix Janda wrote:
> Isaac wrote:
> > On Thu, Jul 25, 2013 at 10:31:47AM +0200, Felix Janda wrote:
> > > Isaac wrote:
> [...]
> > > > By the way, there are requests for more features (-v/-vv and text
> > > > output)
> > > > that would mean slightly differ
Isaac wrote:
> On Thu, Jul 25, 2013 at 10:31:47AM +0200, Felix Janda wrote:
> > Isaac wrote:
[...]
> > > By the way, there are requests for more features (-v/-vv and text output)
> > > that would mean slightly different approaches to getting data;
> > > (p)readat_name
> > > would work in many of
On Thu, Jul 25, 2013 at 10:31:47AM +0200, Felix Janda wrote:
> Isaac wrote:
> > On Wed, Jul 24, 2013 at 09:20:51PM +0200, Felix Janda wrote:
> > > Attached Isaac's toy edited to use toybuf instead of
> > > dynamic memory allocation. It could look prettier, though...
> > >
> > > Felix
> > >
> > Br
Isaac wrote:
> On Wed, Jul 24, 2013 at 09:20:51PM +0200, Felix Janda wrote:
> > Attached Isaac's toy edited to use toybuf instead of
> > dynamic memory allocation. It could look prettier, though...
> >
> > Felix
> >
> Broken:
> /toybox lspci -e
> 00:00.0 Class 0600: 8086
> :27ac
>
> 00:02.0 Cla
On Wed, Jul 24, 2013 at 09:20:51PM +0200, Felix Janda wrote:
> Attached Isaac's toy edited to use toybuf instead of
> dynamic memory allocation. It could look prettier, though...
>
> Felix
>
Broken:
/toybox lspci -e
00:00.0 Class 0600: 8086
:27ac
00:02.0 Class 0300: 8086
:27ae
..
/toybox lspc
Attached Isaac's toy edited to use toybuf instead of
dynamic memory allocation. It could look prettier, though...
Felix
/*
* lspci - written by Isaac Dunham
USE_LSPCI(NEWTOY(lspci, "emkns:", TOYFLAG_USR|TOYFLAG_BIN))
config LSPCI
bool "lspci"
default n
help
usage: lspci [-ekmn]
L