Commit 0defa936 authored by Christian Kellner's avatar Christian Kellner
Browse files

names: add dmi id sysfs path and attribute names

The SMBIOS/DMI information is exported to userspace via sysfs,
which is convenient, because the information can thus be read
conveniently and as a non-root user.
Define constants for relevant information that can be used to
identify the computer / host, like the product, vendor and the
general path to the sysfs device providing that information.
parent 520ef841
......@@ -74,6 +74,11 @@ G_BEGIN_DECLS
#define BOLT_SYSFS_TX_LANES "tx_lanes"
#define BOLT_SYSFS_TX_SPEED "tx_speed"
#define BOLT_SYSFS_DMI_ID "/sys/class/dmi/id"
#define BOLT_SYSFS_DMI_SYS_VENDOR "sys_vendor"
#define BOLT_SYSFS_DMI_PRODUCT_NAME "product_name"
#define BOLT_SYSFS_DMI_PRODUCT_VERSION "product_version"
/* environment variables */
#define BOLT_ENV_DBPATH "BOLT_DBPATH"
#define BOLT_ENV_RUNTIME_DIRECTORY "RUNTIME_DIRECTORY"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment