source: rtems/cpukit/rtems/inline/rtems/rtems/ratemon.inl @ 277cc95

4.104.114.84.95
Last change on this file since 277cc95 was 277cc95, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:54:32

2003-09-04 Joel Sherrill <joel@…>

  • include/rtems.h, include/rtems/rtems/asr.h, include/rtems/rtems/attr.h, include/rtems/rtems/cache.h, include/rtems/rtems/clock.h, include/rtems/rtems/config.h, include/rtems/rtems/dpmem.h, include/rtems/rtems/event.h, include/rtems/rtems/eventmp.h, include/rtems/rtems/eventset.h, include/rtems/rtems/intr.h, include/rtems/rtems/message.h, include/rtems/rtems/modes.h, include/rtems/rtems/mp.h, include/rtems/rtems/msgmp.h, include/rtems/rtems/options.h, include/rtems/rtems/part.h, include/rtems/rtems/partmp.h, include/rtems/rtems/ratemon.h, include/rtems/rtems/region.h, include/rtems/rtems/regionmp.h, include/rtems/rtems/rtemsapi.h, include/rtems/rtems/sem.h, include/rtems/rtems/semmp.h, include/rtems/rtems/signal.h, include/rtems/rtems/signalmp.h, include/rtems/rtems/status.h, include/rtems/rtems/support.h, include/rtems/rtems/taskmp.h, include/rtems/rtems/tasks.h, include/rtems/rtems/timer.h, include/rtems/rtems/types.h, inline/rtems/rtems/asr.inl, inline/rtems/rtems/attr.inl, inline/rtems/rtems/dpmem.inl, inline/rtems/rtems/event.inl, inline/rtems/rtems/eventset.inl, inline/rtems/rtems/message.inl, inline/rtems/rtems/modes.inl, inline/rtems/rtems/options.inl, inline/rtems/rtems/part.inl, inline/rtems/rtems/ratemon.inl, inline/rtems/rtems/region.inl, inline/rtems/rtems/sem.inl, inline/rtems/rtems/status.inl, inline/rtems/rtems/support.inl, inline/rtems/rtems/tasks.inl, inline/rtems/rtems/timer.inl, macros/rtems/rtems/asr.inl, macros/rtems/rtems/attr.inl, macros/rtems/rtems/dpmem.inl, macros/rtems/rtems/event.inl, macros/rtems/rtems/eventset.inl, macros/rtems/rtems/message.inl, macros/rtems/rtems/modes.inl, macros/rtems/rtems/options.inl, macros/rtems/rtems/part.inl, macros/rtems/rtems/ratemon.inl, macros/rtems/rtems/region.inl, macros/rtems/rtems/sem.inl, macros/rtems/rtems/status.inl, macros/rtems/rtems/support.inl, macros/rtems/rtems/tasks.inl, macros/rtems/rtems/timer.inl, src/attr.c, src/clockget.c, src/clockset.c, src/clocktick.c, src/dpmem.c, src/dpmemcreate.c, src/dpmemdelete.c, src/dpmemexternal2internal.c, src/dpmemident.c, src/dpmeminternal2external.c, src/event.c, src/eventmp.c, src/eventreceive.c, src/eventseize.c, src/eventsend.c, src/eventsurrender.c, src/eventtimeout.c, src/intr.c, src/intrbody.c, src/intrcatch.c, src/mp.c, src/msg.c, src/msgmp.c, src/msgqallocate.c, src/msgqbroadcast.c, src/msgqcreate.c, src/msgqdelete.c, src/msgqflush.c, src/msgqgetnumberpending.c, src/msgqident.c, src/msgqreceive.c, src/msgqsend.c, src/msgqsubmit.c, src/msgqtranslatereturncode.c, src/msgqurgent.c, src/part.c, src/partcreate.c, src/partdelete.c, src/partgetbuffer.c, src/partident.c, src/partmp.c, src/partreturnbuffer.c, src/ratemon.c, src/ratemoncancel.c, src/ratemoncreate.c, src/ratemondelete.c, src/ratemongetstatus.c, src/ratemonident.c, src/ratemonperiod.c, src/ratemontimeout.c, src/region.c, src/regioncreate.c, src/regiondelete.c, src/regionextend.c, src/regiongetinfo.c, src/regiongetsegment.c, src/regiongetsegmentsize.c, src/regionident.c, src/regionmp.c, src/regionreturnsegment.c, src/rtclock.c, src/rtemsidtoname.c, src/rtemstimer.c, src/sem.c, src/semcreate.c, src/semdelete.c, src/semflush.c, src/semident.c, src/semmp.c, src/semobtain.c, src/semrelease.c, src/semtranslatereturncode.c, src/signal.c, src/signalcatch.c, src/signalmp.c, src/signalsend.c, src/taskcreate.c, src/taskdelete.c, src/taskgetnote.c, src/taskident.c, src/taskinitusers.c, src/taskissuspended.c, src/taskmode.c, src/taskmp.c, src/taskrestart.c, src/taskresume.c, src/tasks.c, src/tasksetnote.c, src/tasksetpriority.c, src/taskstart.c, src/tasksuspend.c, src/taskvariableadd.c, src/taskvariabledelete.c, src/taskvariableget.c, src/taskwakeafter.c, src/taskwakewhen.c, src/timercancel.c, src/timercreate.c, src/timerdelete.c, src/timerfireafter.c, src/timerfirewhen.c, src/timergetinfo.c, src/timerident.c, src/timerreset.c, src/timerserver.c, src/timerserverfireafter.c, src/timerserverfirewhen.c: URL for license changed.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*  ratemon.inl
2 *
3 *  This file contains the static inline  implementation of the inlined
4 *  routines in the Rate Monotonic Manager.
5 *
6 *  COPYRIGHT (c) 1989-1999.
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#ifndef __RATE_MONOTONIC_inl
17#define __RATE_MONOTONIC_inl
18
19/*PAGE
20 *
21 *  _Rate_monotonic_Allocate
22 *
23 *  DESCRIPTION:
24 *
25 *  This function allocates a period control block from
26 *  the inactive chain of free period control blocks.
27 */
28
29RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void )
30{
31  return (Rate_monotonic_Control *)
32    _Objects_Allocate( &_Rate_monotonic_Information );
33}
34
35/*PAGE
36 *
37 *  _Rate_monotonic_Free
38 *
39 *  DESCRIPTION:
40 *
41 *  This routine allocates a period control block from
42 *  the inactive chain of free period control blocks.
43 */
44
45RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free (
46  Rate_monotonic_Control *the_period
47)
48{
49  _Objects_Free( &_Rate_monotonic_Information, &the_period->Object );
50}
51
52/*PAGE
53 *
54 *  _Rate_monotonic_Get
55 *
56 *  DESCRIPTION:
57 *
58 *  This function maps period IDs to period control blocks.
59 *  If ID corresponds to a local period, then it returns
60 *  the_period control pointer which maps to ID and location
61 *  is set to OBJECTS_LOCAL.  Otherwise, location is set
62 *  to OBJECTS_ERROR and the_period is undefined.
63 */
64
65RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
66  Objects_Id         id,
67  Objects_Locations *location
68)
69{
70  return (Rate_monotonic_Control *)
71    _Objects_Get( &_Rate_monotonic_Information, id, location );
72}
73
74/*PAGE
75 *
76 *  _Rate_monotonic_Is_active
77 *
78 *  DESCRIPTION:
79 *
80 *  This function returns TRUE if the_period is in the ACTIVE state,
81 *  and FALSE otherwise.
82 */
83
84RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
85  Rate_monotonic_Control *the_period
86)
87{
88  return (the_period->state == RATE_MONOTONIC_ACTIVE);
89}
90
91/*PAGE
92 *
93 *  _Rate_monotonic_Is_inactive
94 *
95 *  DESCRIPTION:
96 *
97 *  This function returns TRUE if the_period is in the ACTIVE state,
98 *  and FALSE otherwise.
99 */
100
101RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
102  Rate_monotonic_Control *the_period
103)
104{
105  return (the_period->state == RATE_MONOTONIC_INACTIVE);
106}
107
108/*PAGE
109 *
110 *  _Rate_monotonic_Is_expired
111 *
112 *  DESCRIPTION:
113 *
114 *  This function returns TRUE if the_period is in the EXPIRED state,
115 *  and FALSE otherwise.
116 */
117
118RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
119  Rate_monotonic_Control *the_period
120)
121{
122  return (the_period->state == RATE_MONOTONIC_EXPIRED);
123}
124
125/*PAGE
126 *
127 *  _Rate_monotonic_Is_null
128 *
129 *  DESCRIPTION:
130 *
131 *  This function returns TRUE if the_period is NULL and FALSE otherwise.
132 */
133
134RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_null (
135  Rate_monotonic_Control *the_period
136)
137{
138  return (the_period == NULL);
139}
140
141#endif
142/* end of include file */
Note: See TracBrowser for help on using the repository browser.