source: rtems/cpukit/posix/include/sched.h @ feaa007

4.104.114.95
Last change on this file since feaa007 was feaa007, checked in by Joel Sherrill <joel.sherrill@…>, on 12/17/07 at 16:19:14

2007-12-17 Joel Sherrill <joel.sherrill@…>

  • posix/preinstall.am, posix/include/aio.h, posix/include/devctl.h, posix/include/mqueue.h, posix/include/sched.h, posix/include/semaphore.h, posix/include/rtems/posix/cancel.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/priority.inl, posix/src/barrierattrdestroy.c, posix/src/barrierattrgetpshared.c, posix/src/barrierattrinit.c, posix/src/barrierattrsetpshared.c, posix/src/cancel.c, posix/src/cancelrun.c, posix/src/cleanuppop.c, posix/src/cleanuppush.c, posix/src/cond.c, posix/src/condattrdestroy.c, posix/src/condattrgetpshared.c, posix/src/condattrinit.c, posix/src/condattrsetpshared.c, posix/src/condbroadcast.c, posix/src/conddefaultattributes.c, posix/src/conddestroy.c, posix/src/condinit.c, posix/src/condsignal.c, posix/src/condsignalsupp.c, posix/src/condwait.c, posix/src/condwaitsupp.c, posix/src/key.c, posix/src/keycreate.c, posix/src/keydelete.c, posix/src/keygetspecific.c, posix/src/keyrundestructors.c, posix/src/keysetspecific.c, posix/src/mqueue.c, posix/src/mqueueclose.c, posix/src/mqueuecreatesupp.c, posix/src/mqueuedeletesupp.c, posix/src/mqueuegetattr.c, posix/src/mqueuenametoid.c, posix/src/mqueuenotify.c, posix/src/mqueueopen.c, posix/src/mqueuereceive.c, posix/src/mqueuerecvsupp.c, posix/src/mqueuesend.c, posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c, posix/src/mqueueunlink.c, posix/src/mutex.c, posix/src/mutexattrdestroy.c, posix/src/mutexattrgetprioceiling.c, posix/src/mutexattrgetprotocol.c, posix/src/mutexattrgetpshared.c, posix/src/mutexattrinit.c, posix/src/mutexattrsetprioceiling.c, posix/src/mutexattrsetprotocol.c, posix/src/mutexattrsetpshared.c, posix/src/mutexdefaultattributes.c, posix/src/mutexdestroy.c, posix/src/mutexgetprioceiling.c, posix/src/mutexlock.c, posix/src/mutexlocksupp.c, posix/src/mutexsetprioceiling.c, posix/src/mutextrylock.c, posix/src/mutexunlock.c, posix/src/psignal.c, posix/src/psignalchecksignal.c, posix/src/psignalclearprocesssignals.c, posix/src/psignalclearsignals.c, posix/src/psignalsetprocesssignals.c, posix/src/psignalunblockthread.c, posix/src/ptimer.c, posix/src/rwlockattrdestroy.c, posix/src/rwlockattrgetpshared.c, posix/src/rwlockattrinit.c, posix/src/rwlockattrsetpshared.c, posix/src/semaphore.c, posix/src/semaphoredeletesupp.c, posix/src/semaphorenametoid.c, posix/src/semaphorewaitsupp.c, posix/src/semclose.c, posix/src/semdestroy.c, posix/src/semgetvalue.c, posix/src/seminit.c, posix/src/semopen.c, posix/src/sempost.c, posix/src/semtrywait.c, posix/src/semunlink.c, posix/src/semwait.c, posix/src/setcancelstate.c, posix/src/setcanceltype.c, posix/src/sysconf.c, posix/src/testcancel.c: Add missing copyright statements.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**
2 * @file sched.h
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-2007.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16
17#ifndef _SCHED_H
18#define _SCHED_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <unistd.h>
25
26#if defined(_POSIX_PRIORITY_SCHEDULING)
27
28#include <sys/types.h>
29#include <time.h>
30#include <sys/sched.h>
31#include <pthread.h>
32
33/*
34 *  13.3.1 Set Scheduling Parameters, P1003.1b-1993, p. 252
35 *
36 */
37
38int sched_setparam(
39  pid_t                     pid,
40  const struct sched_param *param
41);
42
43/*
44 *  13.3.2 Set Scheduling Parameters, P1003.1b-1993, p. 253
45 */
46
47int sched_getparam(
48  pid_t                     pid,
49  const struct sched_param *param
50);
51
52/*
53 *  13.3.3 Set Scheduling Policy and Scheduling Parameters,
54 *         P1003.1b-1993, p. 254
55 */
56
57int sched_setscheduler(
58  pid_t                     pid,
59  int                       policy,
60  const struct sched_param *param
61);
62
63/*
64 *  13.3.4 Get Scheduling Policy, P1003.1b-1993, p. 256
65 */
66
67int sched_getscheduler(
68  pid_t                     pid
69);
70
71/*
72 *  13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
73 */
74
75int sched_get_priority_max(
76  int  policy
77);
78
79int sched_get_priority_min(
80  int  policy
81);
82
83int sched_rr_get_interval(
84  pid_t             pid,
85  struct timespec  *interval
86);
87
88#endif /* _POSIX_PRIORITY_SCHEDULING */
89
90#if defined(_POSIX_THREADS) || defined(_POSIX_PRIORITY_SCHEDULING)
91
92/*
93 *  13.3.5 Yield Processor, P1003.1b-1993, p. 257
94 */
95
96int sched_yield( void );
97
98#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
105/* end of include file */
Note: See TracBrowser for help on using the repository browser.