Subversion Repositories shark

Rev

Rev 1304 | 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
 
1304 giacomo 22
  int resource;
23
  int muxstatus;
24
 
1254 giacomo 25
  struct timespec *act; //Activation list
26
  struct timespec *exec; //Execution time list
1304 giacomo 27
  struct timespec *block; //Blocking time
1254 giacomo 28
 
29
};
30
 
31
struct loader_contract {
32
 
33
  int number; //Contract number
34
  struct timespec cmin;
35
  struct timespec tmax;
36
  struct timespec cmax;
37
  struct timespec tmin;
38
  int workload;
1442 giacomo 39
  struct timespec deadline;
1254 giacomo 40
  int local_scheduler;
41
  int server; //Server number linked to this contract
42
 
43
};
44
 
1255 giacomo 45
#endif
46