You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any plans to add optional decoding of the vendor IDs etc like lspci does? I had a look at the format of /usr/share/hwdata/pci.ids and it seems quite simple to parse. Unfortunately it doesn't have a standard location but differs between for example Arch Linux (/usr/share/hwdata/pci.ids) and Debian (/usr/share/misc/pci.ids). Loading it from the system should avoid the license issue.
Of course, I have no idea how that would work on non-Linux platforms (nor do I particularly care about them for my use case).
The text was updated successfully, but these errors were encountered:
I wasn't planning to, mostly because there are issues around it (as you highlight) and there are already crates doing that (I think https://crates.io/crates/pci-ids does, but I didn't doublecheck tbh).
I don't remember that library showing up in my searches. It also bundles the db apparently (instead of loading from the system). And it has a strange license: MIT with restrictions (would need to look into exactly what restrictions).
I ended up writing my own code as a module in my program that parsers the installed pci db using a simple parser written in winnow. I haven't finished hooking it up yet fully (blocked on some issues with the embedded scripting engine that I use) but the code can be found here: https://github.com/VorpalBlade/paketkoll/tree/main/crates/konfigkoll_hwinfo
Hi,
Any plans to add optional decoding of the vendor IDs etc like
lspci
does? I had a look at the format of/usr/share/hwdata/pci.ids
and it seems quite simple to parse. Unfortunately it doesn't have a standard location but differs between for example Arch Linux (/usr/share/hwdata/pci.ids
) and Debian (/usr/share/misc/pci.ids
). Loading it from the system should avoid the license issue.Of course, I have no idea how that would work on non-Linux platforms (nor do I particularly care about them for my use case).
The text was updated successfully, but these errors were encountered: