libdvfs
2.0
A light library to set CPU governor and freqency
Main Page
Data Structures
Files
File List
Globals
dvfs_error.h
Go to the documentation of this file.
1
/*
2
* libdvfs - A light library to set CPU governor and frequency
3
* Copyright (C) 2013-2014 Universite de Versailles
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#pragma once
20
21
#include "
dvfs_core.h
"
22
31
// Error code definition
32
#define DVFS_SUCCESS 0
33
#define DVFS_ERROR_INVALID_ARG -1
34
#define DVFS_ERROR_FILE_ERROR -2
35
#define DVFS_ERROR_MEM_ALLOC_FAILED -3
36
#define DVFS_ERROR_RELATED_CORE_UNAVAILABLE -4
37
#define DVFS_ERROR_SEMAPHORE_FAILURE -5
38
#define DVFS_ERROR_BUFFER_TOO_SHORT -6
39
#define DVFS_ERROR_SET_FREQ_FILE -7
40
#define DVFS_ERROR_INVALID_FREQ -8
41
#define DVFS_ERROR_INVALID_FREQ_ID -9
42
#define DVFS_ERROR_INVALID_CORE_ID -10
43
#define DVFS_ERROR_INVALID_INDEX -11
44
#define DVFS_ERROR_CORE_UNIT_MISMATCH -12
45
#define DVFS_ERROR_UNKNOWN -13
53
const char* dvfs_strerror(int id_error);
dvfs_core.h
Structures and functions to change frequency at the scale of a CPU core.
Generated on Wed Jul 1 2015 16:39:07 for libdvfs by
1.8.9.1