Rev 902 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1063 | tullio | 1 | |
2 | /* |
||
3 | * This program is free software; you can redistribute it and/or modify |
||
4 | * it under the terms of the GNU General Public License as published by |
||
5 | * the Free Software Foundation; either version 2 of the License, or |
||
6 | * (at your option) any later version. |
||
7 | * |
||
8 | * This program is distributed in the hope that it will be useful, |
||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
11 | * GNU General Public License for more details. |
||
12 | * |
||
13 | * You should have received a copy of the GNU General Public License |
||
14 | * along with this program; if not, write to the Free Software |
||
15 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
16 | * |
||
17 | */ |
||
18 | |||
881 | trimarchi | 19 | //fsf.h |
20 | //=========================================================== |
||
21 | // FFFFFFIII RRRRR SSTTTTTTT |
||
22 | // FF IIR RR SS |
||
23 | // FF IR SS |
||
24 | // FFFFFF RRRR SSSSST |
||
25 | // FF FI RRR SS |
||
26 | // FF II RRR SS |
||
27 | // FF IIIIIR RS |
||
28 | // |
||
29 | // FSF(FIRST Scheduling Framework) available functionality |
||
30 | //============================================================ |
||
31 | |||
32 | #include "fsf_configuration_parameters.h" |
||
33 | #include "fsf_opaque_types.h" |
||
34 | #include "fsf_basic_types.h" |
||
35 | #include "fsf_core.h" |
||
889 | trimarchi | 36 | #include "fsf_implementation_specific.h" |
881 | trimarchi | 37 | |
38 | |||
39 | |||
40 | // Configure theses modules by commenting out the appropiate lines |
||
41 | |||
902 | trimarchi | 42 | #include "fsf_hierarchical.h" // |
881 | trimarchi | 43 | #include "fsf_shared_objects.h" |
902 | trimarchi | 44 | #include "fsf_dynamic_reclaiming.h" // |
881 | trimarchi | 45 | #include "fsf_spare_capacity.h" |
902 | trimarchi | 46 | #include "fsf_distributed.h" // |
47 | #include "fsf_distributed_spare_capacity.h" // |
||
881 | trimarchi | 48 | |
49 | #ifndef _FSF_H_ |
||
50 | #define _FSF_H_ |
||
51 | |||
52 | #ifndef FSF_HIERARCHICAL_MODULE_SUPPORTED |
||
53 | #define FSF_HIERARCHICAL_MODULE_SUPPORTED 0 |
||
54 | |||
55 | #endif //FSF_HIERARCHICAL_MODULE_SUPPORTED |
||
56 | |||
57 | #ifndef FSF_SHARED_OBJECTS_MODULE_SUPPORTED |
||
58 | #define FSF_SHARED_OBJECTS_MODULE_SUPPORTED 0 |
||
59 | #endif //FSF_SHARED_OBJECTS_MODULE_SUPPORTED |
||
60 | |||
61 | #ifndef FSF_DYNAMIC_RECLAIMING_MODULE_SUPPORTED |
||
62 | #define FSF_DYNAMIC_RECLAIMING_MODULE_SUPPORTED 0 |
||
63 | #endif //FSF_DYNAMIC_RECLAIMING_MODULE_SUPPORTED |
||
64 | |||
65 | #ifndef FSF_SPARE_CAPACITY_MODULE_SUPPORTED |
||
66 | #define FSF_SPARE_CAPACITY_MODULE_SUPPORTED 0 |
||
67 | |||
68 | //Return warnings if spare_capacity module is not included: |
||
69 | |||
70 | #define fsf_set_contract_reclamation_parameters \ |
||
71 | (contract, budget_max, period_min, granularity,\ |
||
72 | utilization_set, quality, importance) \ |
||
73 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
74 | |||
75 | #define fsf_get_contract_reclamation_parameters \ |
||
76 | (contract, budget_max, period_min, granularity,\ |
||
77 | utilization_set, quality, importance) \ |
||
78 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
79 | |||
80 | #define fsf_request_change_quality_and_importance\ |
||
81 | (server, new_importance, new_quality) \ |
||
82 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
83 | |||
84 | #define fsf_get_total_quality (server,total_quality)\ |
||
85 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
86 | |||
87 | #endif //FSF_SPARE_CAPACITY_MODULE_SUPPORTED |
||
88 | |||
902 | trimarchi | 89 | #ifndef FSF_DISTRIBUTED_MODULE_SUPPORTED |
90 | #define FSF_DISTRIBUTED_MODULE_SUPPORTED 0 |
||
91 | #endif //FSF_DISTRIBUTED_MODULE_SUPPORTED |
||
881 | trimarchi | 92 | |
902 | trimarchi | 93 | #ifndef FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED |
94 | #define FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED 0 |
||
95 | |||
96 | //Return warnings if distributed_spare_capacity module is not included: |
||
881 | trimarchi | 97 | |
902 | trimarchi | 98 | #define fsf_set_contract_granted_capacity_flag(contract,granted_capacity_flag)\ |
99 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
100 | |||
101 | #define fsf_get_contract_granted_capacity_flag(contract,granted_capacity_flag)\ |
||
102 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
103 | |||
104 | #definr fsf_set_server_capacity(server,new_period,new_budget)\ |
||
105 | ( FSF_WRN_MODULE_NOT SUPPORTED ) |
||
881 | trimarchi | 106 | |
902 | trimarchi | 107 | #endif //FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED |
881 | trimarchi | 108 | |
902 | trimarchi | 109 | |
881 | trimarchi | 110 | #endif // _FSF_H_ |