Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 403 → Rev 404

/shark/trunk/ports/first/include/grubstar.h
96,5 → 96,7
 
int GRUBSTAR_get_remain_capacity(LEVEL l, int budget);
 
bandwidth_t GRUBSTAR_return_bandwidth(LEVEL l);
 
#endif
 
/shark/trunk/ports/first/include/fsf_contract.h
26,6 → 26,8
#ifndef _FSF_CONTRACT_H_
#define _FSF_CONTRACT_H_
 
 
 
/* S.Ha.R.K. Init */
int FSF_register_module(int server_level);
 
300,6 → 302,22
 
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
 
/shark/trunk/ports/first/include/fsf_server.h
33,7 → 33,7
#define SERVER_getbudgetinfo GRUBSTAR_getbudgetinfo
#define SERVER_get_last_reclaiming GRUBSTAR_get_last_reclaiming
#define SERVER_get_remain_capacity GRUBSTAR_get_remain_capacity
 
#define SERVER_return_bandwidth GRUBSTAR_return_bandwidth
#endif
 
#endif