source: rtems/cpukit/score/src/apiext.c @ a6eef8b

Last change on this file since a6eef8b was a6eef8b, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:52:48

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

  • apiext.c, chain.c, coremsg.c, coremsgbroadcast.c, coremsgclose.c, coremsgflush.c, coremsgflushsupp.c, coremsgflushwait.c, coremsginsert.c, coremsgseize.c, coremsgsubmit.c, coremutex.c, coremutexflush.c, coremutexseize.c, coremutexsurrender.c, coresem.c, coresemflush.c, coresemseize.c, coresemsurrender.c, coretod.c, coretodset.c, coretodtickle.c, coretodtoseconds.c, coretodvalidate.c, heap.c, heapallocate.c, heapextend.c, heapfree.c, heapgetinfo.c, heapsizeofuserarea.c, heapwalk.c, interr.c, isr.c, mpci.c, object.c, objectallocate.c, objectallocatebyindex.c, objectclearname.c, objectcomparenameraw.c, objectcomparenamestring.c, objectcopynameraw.c, objectcopynamestring.c, objectextendinformation.c, objectfree.c, objectget.c, objectgetbyindex.c, objectgetisr.c, objectgetnext.c, objectgetnoprotection.c, objectinitializeinformation.c, objectmp.c, objectnametoid.c, objectshrinkinformation.c, thread.c, threadchangepriority.c, threadclearstate.c, threadclose.c, threadcreateidle.c, threaddelayended.c, threaddispatch.c, threadevaluatemode.c, threadget.c, threadhandler.c, threadidlebody.c, threadinitialize.c, threadloadenv.c, threadmp.c, threadq.c, threadqdequeue.c, threadqdequeuefifo.c, threadqdequeuepriority.c, threadqenqueue.c, threadqenqueuefifo.c, threadqenqueuepriority.c, threadqextract.c, threadqextractfifo.c, threadqextractpriority.c, threadqextractwithproxy.c, threadqfirst.c, threadqfirstfifo.c, threadqfirstpriority.c, threadqflush.c, threadqtimeout.c, threadready.c, threadreset.c, threadresettimeslice.c, threadrestart.c, threadresume.c, threadrotatequeue.c, threadsetpriority.c, threadsetstate.c, threadsettransient.c, threadstackallocate.c, threadstackfree.c, threadstart.c, threadstartmultitasking.c, threadsuspend.c, threadtickletimeslice.c, threadyieldprocessor.c, userext.c, watchdog.c, watchdogadjust.c, watchdoginsert.c, watchdogremove.c, watchdogtickle.c, wkspace.c: URL for license changed.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*  apiext.c
2 *
3 *  XXX
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15
16#include <rtems/system.h>
17#include <rtems/score/apiext.h>
18
19/*PAGE
20 *
21 *  _API_extensions_Initialization
22 */
23 
24void _API_extensions_Initialization( void )
25{
26 _Chain_Initialize_empty( &_API_extensions_List );
27}
28 
29/*PAGE
30 *
31 *  _API_extensions_Add
32 */
33 
34void _API_extensions_Add(
35  API_extensions_Control *the_extension
36)
37{
38  _Chain_Append( &_API_extensions_List, &the_extension->Node );
39}
40
41/*PAGE
42 *
43 *  _API_extensions_Run_predriver
44 */
45
46void _API_extensions_Run_predriver( void )
47{
48  Chain_Node             *the_node;
49  API_extensions_Control *the_extension;
50 
51  for ( the_node = _API_extensions_List.first ;
52        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
53        the_node = the_node->next ) {
54 
55    the_extension = (API_extensions_Control *) the_node;
56 
57    if ( the_extension->predriver_hook )
58      (*the_extension->predriver_hook)();
59  }
60}
61
62/*PAGE
63 *
64 *  _API_extensions_Run_postdriver
65 */
66
67void _API_extensions_Run_postdriver( void )
68{
69  Chain_Node             *the_node;
70  API_extensions_Control *the_extension;
71 
72  for ( the_node = _API_extensions_List.first ;
73        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
74        the_node = the_node->next ) {
75 
76    the_extension = (API_extensions_Control *) the_node;
77 
78    if ( the_extension->postdriver_hook )
79      (*the_extension->postdriver_hook)();
80  }
81}
82
83/*PAGE
84 *
85 *  _API_extensions_Run_postswitch
86 */
87
88void _API_extensions_Run_postswitch( void )
89{
90  Chain_Node             *the_node;
91  API_extensions_Control *the_extension;
92 
93  for ( the_node = _API_extensions_List.first ;
94        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
95        the_node = the_node->next ) {
96 
97    the_extension = (API_extensions_Control *) the_node;
98 
99    if ( the_extension->postswitch_hook )
100      (*the_extension->postswitch_hook)( _Thread_Executing );
101  }
102}
103
104/* end of file */
Note: See TracBrowser for help on using the repository browser.