Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1663 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   (see the web pages for full authors list)
11
 *
12
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
13
 *
14
 * http://www.sssup.it
15
 * http://retis.sssup.it
16
 * http://shark.sssup.it
17
 */
18
 
19
/**
20
 ------------
21
 CVS :        $Id: mymod.h,v 1.1 2004-07-05 14:17:12 pj Exp $
22
 
23
 File:        $File$
24
 Revision:    $Revision: 1.1 $
25
 Last update: $Date: 2004-07-05 14:17:12 $
26
 ------------
27
**/
28
 
29
/*
30
 * Copyright (C) 2001 by Paolo Gai
31
 *
32
 * This program is free software; you can redistribute it and/or modify
33
 * it under the terms of the GNU General Public License as published by
34
 * the Free Software Foundation; either version 2 of the License, or
35
 * (at your option) any later version.
36
 *
37
 * This program is distributed in the hope that it will be useful,
38
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
40
 * GNU General Public License for more details.
41
 *
42
 * You should have received a copy of the GNU General Public License
43
 * along with this program; if not, write to the Free Software
44
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
45
 *
46
 */
47
 
48
/* put here a description of the module */
49
/* change MYMOD with GROUPXXX, where XXX is your group number */
50
 
51
#ifndef __MYMOD_H__
52
#define __MYMOD_H__
53
 
54
#include <valmodel.h>
55
#include <kernel/model.h>
56
// maybe you need here some include file
57
 
58
// then... we define a new Task Model without modifying 
59
// the standard kernel distribution
60
 
61
// pick a code and a version not used into the file include/modules/codes.h
62
#define MYMOD_LEVELNAME         "GROUPXXX Scheduling Module"
63
#define MYMOD_LEVEL_CODE        167
64
#define MYMOD_LEVEL_VERSION     1
65
 
66
// if the module raises some new exception list them here
67
// pincking up unused numbers from include/bits/errno.h
68
 
69
/*+ Registration function:
70
    int parameter     Options to be used in this level instance... +*/
71
void MYMOD_register_level(int parameter);
72
 
73
/*+ this function will accept or reject tasks during group creation +*/
74
int MYMOD_taskaccepted(PID p);
75
 
76
 
77
/*+ returns the current total value +*/
78
int MYMOD_getvalue(LEVEL l);
79
 
80
/* here you can also put some other functions similar for example
81
   to the EDF_usedbandwidth() in the file include/modules/edf.h */
82
 
83
#endif
84
 
85
 
86
 
87
 
88
 
89
 
90
 
91
 
92
 
93
 
94
 
95
 
96
 
97
 
98
 
99
 
100
 
101
 
102
 
103