dmi_processor_status
Synopsis
#include <opendmi/entity/processor.h>
typedef enum dmi_processor_status {
DMI_PROCESSOR_STATUS_UNKNOWN = 0x00,
DMI_PROCESSOR_STATUS_ENABLED = 0x01,
DMI_PROCESSOR_STATUS_DISABLED_BY_USER = 0x02,
DMI_PROCESSOR_STATUS_DISABLED_BY_FW = 0x03,
DMI_PROCESSOR_STATUS_IDLE = 0x04,
DMI_PROCESSOR_STATUS_OTHER = 0x07
} dmi_processor_status_t;
const char *dmi_processor_status_name(dmi_processor_status_t value);
Description
The dmi_processor_status_t enumeration tells the state of a processor, and
is the type of the status field of dmi_processor_t. The values 0x05 and
0x06 are reserved.
The dmi_processor_status_name function returns the name of a value, as the
command line tool shows it.
Values
DMI_PROCESSOR_STATUS_UNKNOWN-
Unknown.
DMI_PROCESSOR_STATUS_ENABLED-
Processor is enabled.
DMI_PROCESSOR_STATUS_DISABLED_BY_USER-
Processor is disabled by the user, in the firmware setup.
DMI_PROCESSOR_STATUS_DISABLED_BY_FW-
Processor is disabled by the firmware, after a POST error.
DMI_PROCESSOR_STATUS_IDLE-
Processor is idle, waiting to be enabled.
DMI_PROCESSOR_STATUS_OTHER-
Other.
Return value
dmi_processor_status_name returns the name of the value, or nullptr if the
value has no name. The name is translated to the current locale when the
library is built with localization support and has a translation for it, and
is in English otherwise. The string is owned by the library and must not be
modified or freed.