source: rtems/cpukit/score/include/rtems/score/objectmp.h @ dd687d97

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

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

  • include/rtems/debug.h, include/rtems/seterr.h, include/rtems/system.h, include/rtems/score/address.h, include/rtems/score/apiext.h, include/rtems/score/apimutex.h, include/rtems/score/bitfield.h, include/rtems/score/chain.h, include/rtems/score/context.h, include/rtems/score/copyrt.h, include/rtems/score/coremsg.h, include/rtems/score/coremutex.h, include/rtems/score/coresem.h, include/rtems/score/heap.h, include/rtems/score/interr.h, include/rtems/score/isr.h, include/rtems/score/mpci.h, include/rtems/score/mppkt.h, include/rtems/score/object.h, include/rtems/score/objectmp.h, include/rtems/score/priority.h, include/rtems/score/stack.h, include/rtems/score/states.h, include/rtems/score/sysstate.h, include/rtems/score/thread.h, include/rtems/score/threadmp.h, include/rtems/score/threadq.h, include/rtems/score/tod.h, include/rtems/score/tqdata.h, include/rtems/score/userext.h, include/rtems/score/watchdog.h, include/rtems/score/wkspace.h, inline/rtems/score/address.inl, inline/rtems/score/chain.inl, inline/rtems/score/coremsg.inl, inline/rtems/score/coremutex.inl, inline/rtems/score/coresem.inl, inline/rtems/score/heap.inl, inline/rtems/score/isr.inl, inline/rtems/score/mppkt.inl, inline/rtems/score/object.inl, inline/rtems/score/objectmp.inl, inline/rtems/score/priority.inl, inline/rtems/score/stack.inl, inline/rtems/score/states.inl, inline/rtems/score/sysstate.inl, inline/rtems/score/thread.inl, inline/rtems/score/threadmp.inl, inline/rtems/score/tod.inl, inline/rtems/score/tqdata.inl, inline/rtems/score/userext.inl, inline/rtems/score/watchdog.inl, inline/rtems/score/wkspace.inl, macros/rtems/score/address.inl, macros/rtems/score/chain.inl, macros/rtems/score/coremsg.inl, macros/rtems/score/coremutex.inl, macros/rtems/score/coresem.inl, macros/rtems/score/heap.inl, macros/rtems/score/isr.inl, macros/rtems/score/mppkt.inl, macros/rtems/score/object.inl, macros/rtems/score/objectmp.inl, macros/rtems/score/priority.inl, macros/rtems/score/stack.inl, macros/rtems/score/states.inl, macros/rtems/score/sysstate.inl, macros/rtems/score/thread.inl, macros/rtems/score/threadmp.inl, macros/rtems/score/tod.inl, macros/rtems/score/tqdata.inl, macros/rtems/score/userext.inl, macros/rtems/score/watchdog.inl, macros/rtems/score/wkspace.inl, src/apiext.c, src/chain.c, src/coremsg.c, src/coremsgbroadcast.c, src/coremsgclose.c, src/coremsgflush.c, src/coremsgflushsupp.c, src/coremsgflushwait.c, src/coremsginsert.c, src/coremsgseize.c, src/coremsgsubmit.c, src/coremutex.c, src/coremutexflush.c, src/coremutexseize.c, src/coremutexsurrender.c, src/coresem.c, src/coresemflush.c, src/coresemseize.c, src/coresemsurrender.c, src/coretod.c, src/coretodset.c, src/coretodtickle.c, src/coretodtoseconds.c, src/coretodvalidate.c, src/heap.c, src/heapallocate.c, src/heapextend.c, src/heapfree.c, src/heapgetinfo.c, src/heapsizeofuserarea.c, src/heapwalk.c, src/interr.c, src/isr.c, src/iterateoverthreads.c, src/mpci.c, src/object.c, src/objectallocate.c, src/objectallocatebyindex.c, src/objectclearname.c, src/objectcomparenameraw.c, src/objectcomparenamestring.c, src/objectcopynameraw.c, src/objectcopynamestring.c, src/objectextendinformation.c, src/objectfree.c, src/objectget.c, src/objectgetbyindex.c, src/objectgetisr.c, src/objectgetnext.c, src/objectgetnoprotection.c, src/objectidtoname.c, src/objectinitializeinformation.c, src/objectmp.c, src/objectnametoid.c, src/objectshrinkinformation.c, src/thread.c, src/threadchangepriority.c, src/threadclearstate.c, src/threadclose.c, src/threadcreateidle.c, src/threaddelayended.c, src/threaddispatch.c, src/threadevaluatemode.c, src/threadget.c, src/threadhandler.c, src/threadidlebody.c, src/threadinitialize.c, src/threadloadenv.c, src/threadmp.c, src/threadq.c, src/threadqdequeue.c, src/threadqdequeuefifo.c, src/threadqdequeuepriority.c, src/threadqenqueue.c, src/threadqenqueuefifo.c, src/threadqenqueuepriority.c, src/threadqextract.c, src/threadqextractfifo.c, src/threadqextractpriority.c, src/threadqextractwithproxy.c, src/threadqfirst.c, src/threadqfirstfifo.c, src/threadqfirstpriority.c, src/threadqflush.c, src/threadqtimeout.c, src/threadready.c, src/threadreset.c, src/threadresettimeslice.c, src/threadrestart.c, src/threadresume.c, src/threadrotatequeue.c, src/threadsetpriority.c, src/threadsetstate.c, src/threadsettransient.c, src/threadstackallocate.c, src/threadstackfree.c, src/threadstart.c, src/threadstartmultitasking.c, src/threadsuspend.c, src/threadtickletimeslice.c, src/threadyieldprocessor.c, src/userext.c, src/watchdog.c, src/watchdogadjust.c, src/watchdoginsert.c, src/watchdogremove.c, src/watchdogtickle.c, src/wkspace.c: URL for license changed.
  • Property mode set to 100644
File size: 3.5 KB
Line 
1/*  objectmp.h
2 *
3 *  This include file contains all the constants and structures associated
4 *  with the manipulation of Global RTEMS Objects.
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 __RTEMS_OBJECTS_MP_h
17#define __RTEMS_OBJECTS_MP_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  This defines the Global Object Control Block used to manage
25 *  objects resident on other nodes.
26 */
27
28typedef struct {
29  Objects_Control Object;
30  unsigned32      name;     /* XXX broken but works */
31  /* XXX If any API is MP with variable length names .. BOOM!!!! */
32}   Objects_MP_Control;
33
34/*
35 *  _Objects_MP_Handler_initialization
36 *
37 *  DESCRIPTION:
38 *
39 *  This routine intializes the inactive global object chain
40 *  based on the maximum number of global objects configured.
41 */
42
43void _Objects_MP_Handler_initialization (
44  unsigned32 node,
45  unsigned32 maximum_nodes,
46  unsigned32 maximum_global_objects
47);
48
49/*PAGE
50 *
51 *  _Objects_MP_Open
52 *
53 *  DESCRIPTION:
54 *
55 *  This routine place the specified global object in the
56 *  specified information table. 
57 */
58 
59void _Objects_MP_Open (
60  Objects_Information *information,
61  Objects_MP_Control  *the_global_object,
62  unsigned32           the_name,      /* XXX -- wrong for variable */
63  Objects_Id           the_id
64);
65
66/*
67 *  _Objects_MP_Allocate_and_open
68 *
69 *  DESCRIPTION:
70 *
71 *  This routine allocates a global object control block
72 *  and places it in the specified information table.  If the
73 *  allocation fails, then is_fatal_error determines the
74 *  error processing actions taken.
75 */
76
77boolean _Objects_MP_Allocate_and_open (
78  Objects_Information *information,
79  unsigned32           the_name,     /* XXX -- wrong for variable length */
80  Objects_Id           the_id,
81  boolean              is_fatal_error
82);
83
84/*
85 *  _Objects_MP_Close
86 *
87 *  DESCRIPTION:
88 *
89 *  This routine removes a global object from the specified
90 *  information table and deallocates the global object control block.
91 */
92
93void _Objects_MP_Close (
94  Objects_Information *information,
95  Objects_Id           the_id
96);
97
98/*
99 *  _Objects_MP_Global_name_search
100 *
101 *  DESCRIPTION:
102 *
103 *  This routine looks for the object with the_name in the global
104 *  object tables indicated by information.  It returns the ID of the
105 *  object with that name if one is found.
106 */
107
108Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search (
109  Objects_Information *information,
110  Objects_Name         the_name,
111  unsigned32           nodes_to_search,
112  Objects_Id          *the_id
113);
114
115/*
116 *  _Objects_MP_Is_remote
117 *
118 *  DESCRIPTION:
119 *
120 *  This function searches the Global Object Table managed
121 *  by information for the object indicated by ID.  If the object
122 *  is found, then location is set to objects_remote, otherwise
123 *  location is set to objects_error.  In both cases, the_object
124 *  is undefined.
125 */
126
127void _Objects_MP_Is_remote (
128  Objects_Information  *information,
129  Objects_Id            the_id,
130  Objects_Locations    *location,
131  Objects_Control     **the_object
132);
133
134/*
135 *  The following chain header is used to manage the set of
136 *  inactive global object control blocks.
137 */
138
139SCORE_EXTERN unsigned32     _Objects_MP_Maximum_global_objects;
140SCORE_EXTERN Chain_Control  _Objects_MP_Inactive_global_objects;
141
142#ifndef __RTEMS_APPLICATION__
143#include <rtems/score/objectmp.inl>
144#endif
145
146#ifdef __cplusplus
147}
148#endif
149
150#endif
151/* end of include file */
Note: See TracBrowser for help on using the repository browser.