pci util cpp library
William Kennington
wak at google.com
Mon May 6 15:02:07 AEST 2019
Worth noting that lspci just uses the libpci library provided by
pciutils. I would try and use that before parsing lspci.
https://github.com/pciutils/pciutils/blob/master/example.c
On Sun, May 5, 2019 at 8:32 PM Andrew Jeffery <andrew at aj.id.au> wrote:
>
>
>
> On Sat, 4 May 2019, at 02:28, Patrick Venture wrote:
> > Does anyone have a favorite CPP library for talking to PCI? I don't
> > think parsing lspci output is as clean.
>
> This feels a lot like the X-Y problem:
>
> https://mywiki.wooledge.org/XyProblem
>
> What are you actually trying to do?
>
> Maybe poking at sysfs directly might help?
>
> Andrew
>
> >
> > Patrick
> >
More information about the openbmc
mailing list