OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [include/] [sched.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  sched.h
2
 *
3
 *  $Id: sched.h,v 1.2 2001-09-27 11:59:13 chris Exp $
4
 */
5
 
6
 
7
#ifndef __POSIX_SCHEDULING_h
8
#define __POSIX_SCHEDULING_h
9
 
10
#ifdef __cplusplus
11
extern "C" {
12
#endif
13
 
14
#include <sys/features.h>
15
 
16
#if defined(_POSIX_PRIORITY_SCHEDULING)
17
 
18
#include <sys/types.h>
19
#include <time.h>
20
#include <sys/sched.h>
21
#include <pthread.h>
22
 
23
/*
24
 *  13.3.1 Set Scheduling Parameters, P1003.1b-1993, p. 252
25
 *
26
 */
27
 
28
int sched_setparam(
29
  pid_t                     pid,
30
  const struct sched_param *param
31
);
32
 
33
/*
34
 *  13.3.2 Set Scheduling Parameters, P1003.1b-1993, p. 253
35
 */
36
 
37
int sched_getparam(
38
  pid_t                     pid,
39
  const struct sched_param *param
40
);
41
 
42
/*
43
 *  13.3.3 Set Scheduling Policy and Scheduling Parameters,
44
 *         P1003.1b-1993, p. 254
45
 */
46
 
47
int sched_setscheduler(
48
  pid_t                     pid,
49
  int                       policy,
50
  const struct sched_param *param
51
);
52
 
53
/*
54
 *  13.3.4 Get Scheduling Policy, P1003.1b-1993, p. 256
55
 */
56
 
57
int sched_getscheduler(
58
  pid_t                     pid
59
);
60
 
61
/*
62
 *  13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
63
 */
64
 
65
int sched_get_priority_max(
66
  int  policy
67
);
68
 
69
int sched_get_priority_min(
70
  int  policy
71
);
72
 
73
int sched_rr_get_interval(
74
  pid_t             pid,
75
  struct timespec  *interval
76
);
77
 
78
#endif /* _POSIX_PRIORITY_SCHEDULING */
79
 
80
#if defined(_POSIX_THREADS) || defined(_POSIX_PRIORITY_SCHEDULING)
81
 
82
/*
83
 *  13.3.5 Yield Processor, P1003.1b-1993, p. 257
84
 */
85
 
86
int sched_yield( void );
87
 
88
#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
89
 
90
#ifdef __cplusplus
91
}
92
#endif
93
 
94
#endif
95
/* end of include file */
96
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.