Subversion Repositories shark

Rev

Rev 1254 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1254 giacomo 1
/* Generic Struct for loader task */
1255 giacomo 2
#ifndef __NLOAD_H__
3
#define __NLOAD_H__
1254 giacomo 4
 
1255 giacomo 5
#include "func.h" //Constant definition for loader and linux parser
1254 giacomo 6
 
7
struct loader_task {
8
 
9
  char name[20]; //Task name
10
  int task_type; //Tast type (OS,CT,BT)
11
  int contract; //Contract number
12
  int local_scheduler; //Local scheduler for the task
13
  int number; //How many copies of this task
14
  int group; //Group number
15
 
16
  struct timespec deadline; //Task deadline
17
  struct timespec wcet; //Task wcet
18
 
19
  int act_number; //Number of activations precalcolated
20
  int act_current; //Actual activation number
21
 
22
  struct timespec *act; //Activation list
23
  struct timespec *exec; //Execution time list
24
 
25
};
26
 
27
struct loader_contract {
28
 
29
  int number; //Contract number
30
  struct timespec cmin;
31
  struct timespec tmax;
32
  struct timespec cmax;
33
  struct timespec tmin;
34
  int workload;
35
  int local_scheduler;
36
  int server; //Server number linked to this contract
37
 
38
};
39
 
1255 giacomo 40
#endif
41