geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Enumerations | Functions
geopm_error.h File Reference
#include <stdlib.h>
#include "geopm_public.h"
Include dependency graph for geopm_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  geopm_error_e {
  GEOPM_ERROR_RUNTIME = -1 , GEOPM_ERROR_LOGIC = -2 , GEOPM_ERROR_INVALID = -3 , GEOPM_ERROR_FILE_PARSE = -4 ,
  GEOPM_ERROR_LEVEL_RANGE = -5 , GEOPM_ERROR_NOT_IMPLEMENTED = -6 , GEOPM_ERROR_PLATFORM_UNSUPPORTED = -7 , GEOPM_ERROR_MSR_OPEN = -8 ,
  GEOPM_ERROR_MSR_READ = -9 , GEOPM_ERROR_MSR_WRITE = -10 , GEOPM_ERROR_AGENT_UNSUPPORTED = -11 , GEOPM_ERROR_AFFINITY = -12 ,
  GEOPM_ERROR_NO_AGENT = -13 , GEOPM_ERROR_DATA_STORE = -14
}
 

Functions

void GEOPM_PUBLIC geopm_error_message (int err, char *msg, size_t size)
 

Enumeration Type Documentation

◆ geopm_error_e

Enumerator
GEOPM_ERROR_RUNTIME 
GEOPM_ERROR_LOGIC 
GEOPM_ERROR_INVALID 
GEOPM_ERROR_FILE_PARSE 
GEOPM_ERROR_LEVEL_RANGE 
GEOPM_ERROR_NOT_IMPLEMENTED 
GEOPM_ERROR_PLATFORM_UNSUPPORTED 
GEOPM_ERROR_MSR_OPEN 
GEOPM_ERROR_MSR_READ 
GEOPM_ERROR_MSR_WRITE 
GEOPM_ERROR_AGENT_UNSUPPORTED 
GEOPM_ERROR_AFFINITY 
GEOPM_ERROR_NO_AGENT 
GEOPM_ERROR_DATA_STORE 

Function Documentation

◆ geopm_error_message()

void GEOPM_PUBLIC geopm_error_message ( int  err,
char *  msg,
size_t  size 
)