26,8 → 26,6 |
#ifndef _FSF_CONTRACT_H_ |
#define _FSF_CONTRACT_H_ |
|
|
|
/* S.Ha.R.K. Init */ |
int FSF_register_module(int server_level); |
|
302,22 → 300,6 |
|
typedef int fsf_server_id_t; |
|
|
typedef struct { |
fsf_server_id_t server; |
struct timespec budget_actual; |
struct timespec period_actual; |
int Qs; // quality of service |
bandwidth_t U; // actual bandwidth |
bandwidth_t Umin; // min bandwidth |
bandwidth_t Umax; // max bandwidth |
TIME Cmin; |
TIME Tmax; |
} server_elem; |
|
int recalculate_contract(bandwidth_t U); |
|
|
// The following type references a function that may become |
// a thread's code |
|