Returning Device GUIDs and Bios ID, C++, Linux -
I am trying to write the function to return all the GUIDs of the devices connected to the machine, as well as returning the BIOS I am id How do I get it? I can only find ways to do this on a Windows machine, but not Linux.
Linux does not assign a GUID for everything that hardware is identified by hardware-based means It is, e.g. USB and PCI tools are identified by vendor and device ID (and serial number).
What data can you provide by browsing / sys ? I can also check the source of tools like
lspci and
lsusb to get an idea of how to recover data from the program (i.e. < Code> / sys ).
By the way, there is also a device called
dmidecode , which works directly on DMI data.
Comments
Post a Comment