Rev 80 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | 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 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | ------------ |
||
80 | pj | 23 | CVS : $Id: sched.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
2 | pj | 24 | |
25 | File: $File$ |
||
80 | pj | 26 | Revision: $Revision: 1.2 $ |
27 | Last update: $Date: 2003-03-13 13:41:04 $ |
||
2 | pj | 28 | ------------ |
29 | |||
30 | sched.h |
||
31 | |||
32 | **/ |
||
33 | |||
34 | /* |
||
35 | * Copyright (C) 2000 Paolo Gai |
||
36 | * |
||
37 | * This program is free software; you can redistribute it and/or modify |
||
38 | * it under the terms of the GNU General Public License as published by |
||
39 | * the Free Software Foundation; either version 2 of the License, or |
||
40 | * (at your option) any later version. |
||
41 | * |
||
42 | * This program is distributed in the hope that it will be useful, |
||
43 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
44 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
45 | * GNU General Public License for more details. |
||
46 | * |
||
47 | * You should have received a copy of the GNU General Public License |
||
48 | * along with this program; if not, write to the Free Software |
||
49 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
50 | * |
||
51 | */ |
||
52 | |||
53 | |||
54 | #ifndef __SCHED_H__ |
||
55 | #define __SCHED_H__ |
||
56 | |||
57 | #include <kernel/model.h> |
||
1689 | fabio | 58 | #include <arch/sys/cdefs.h> |
2 | pj | 59 | |
80 | pj | 60 | __BEGIN_DECLS |
61 | |||
2 | pj | 62 | #define SCHED_FIFO NRT_FIFO_POLICY |
63 | #define SCHED_RR NRT_RR_POLICY |
||
64 | #define SCHED_OTHER NRT_RR_POLICY |
||
65 | |||
66 | struct sched_param { |
||
67 | int sched_priority; |
||
68 | }; |
||
69 | |||
70 | // functions NRQ for PSE52 |
||
71 | int sched_get_priority_max(int policy); |
||
72 | extern __inline__ int sched_get_priority_min(int policy) {return 0; } |
||
73 | int sched_rr_get_interval(pid_t pid, struct timespec *interval); |
||
74 | // sched_getparam |
||
75 | // sched_getscheduler |
||
76 | // sched_setparam |
||
77 | // sched_setscheduler |
||
78 | |||
79 | int sched_yield(void); |
||
80 | |||
80 | pj | 81 | __END_DECLS |
2 | pj | 82 | #endif |