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
Maybe this is out of scope of this crate, but you already have some of this, such as CPU vendor and model.
I'm working on (Linux specific in my case) code that needs to:
Enumerate vendor of GPU(s). So an interface that exposes similar data to the lspci command. Though that uses a database mapping device IDs to names, that we would presumably have to parse in Rust. Fun. The data before lookup is all in /sys/bus/pci/devices. Even for PCI Express.
Determine if this is a laptop, desktop, server or VM (/sys/class/dmi/id/chassis_type on x86-64 Linux, though not always accurate or reliable).
I'm also interested in what CPU feature level the current CPU has (x86-64-v3 etc). For ARM/ARM64 this doesn't apply.
Determine if the system is BIOS, UEFI or otherwise (e.g. some ARM system with custom boot like a Raspberry Pi). You can check for existence of /sys/firmware/efi.
Determine if the system has a TPM. You can check for /sys/class/tpm/tpm0 (or more accurately tpm* etc)
I could implement all of these for Linux. I have no clue for other platforms (*BSD etc). And I don't even own a computer running a non-free OS (like Windows) any more.
The text was updated successfully, but these errors were encountered:
Maybe this is out of scope of this crate, but you already have some of this, such as CPU vendor and model.
I'm working on (Linux specific in my case) code that needs to:
lspci
command. Though that uses a database mapping device IDs to names, that we would presumably have to parse in Rust. Fun. The data before lookup is all in/sys/bus/pci/devices
. Even for PCI Express./sys/class/dmi/id/chassis_type
on x86-64 Linux, though not always accurate or reliable)./sys/firmware/efi
./sys/class/tpm/tpm0
(or more accuratelytpm*
etc)I could implement all of these for Linux. I have no clue for other platforms (*BSD etc). And I don't even own a computer running a non-free OS (like Windows) any more.
The text was updated successfully, but these errors were encountered: