source: rtems/cpukit/rtems/src/msg.c @ 6b384516

4.104.114.84.95
Last change on this file since 6b384516 was 6b384516, checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/03 at 15:04:42

2003-01-10 Joel Sherrill <joel@…>

  • src/msg.c, src/part.c, src/sem.c, src/tasks.c: Correct object class control structure initialization for multiprocessing configurations.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 *  Message Queue Manager
3 *
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.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems/system.h>
16#include <rtems/score/sysstate.h>
17#include <rtems/score/chain.h>
18#include <rtems/score/isr.h>
19#include <rtems/score/coremsg.h>
20#include <rtems/score/object.h>
21#include <rtems/score/states.h>
22#include <rtems/score/thread.h>
23#include <rtems/score/wkspace.h>
24#if defined(RTEMS_MULTIPROCESSING)
25#include <rtems/score/mpci.h>
26#endif
27#include <rtems/rtems/status.h>
28#include <rtems/rtems/attr.h>
29#include <rtems/rtems/message.h>
30#include <rtems/rtems/options.h>
31#include <rtems/rtems/support.h>
32
33/*PAGE
34 *
35 *  _Message_queue_Manager_initialization
36 *
37 *  This routine initializes all message queue manager related
38 *  data structures.
39 *
40 *  Input parameters:
41 *    maximum_message_queues - number of message queues to initialize
42 *
43 *  Output parameters:  NONE
44 */
45
46void _Message_queue_Manager_initialization(
47  unsigned32 maximum_message_queues
48)
49{
50  _Objects_Initialize_information(
51    &_Message_queue_Information,  /* object information table */
52    OBJECTS_CLASSIC_API,          /* object API */
53    OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */
54    maximum_message_queues,       /* maximum objects of this class */
55    sizeof( Message_queue_Control ),
56                               /* size of this object's control block */
57    FALSE,                     /* TRUE if names of this object are strings */
58    RTEMS_MAXIMUM_NAME_LENGTH  /* maximum length of each object's name */
59#if defined(RTEMS_MULTIPROCESSING)
60    ,
61    TRUE,                      /* TRUE if this is a global object class */
62    _Message_queue_MP_Send_extract_proxy  /* Proxy extraction support callout */
63#endif
64  );
65
66  /*
67   *  Register the MP Process Packet routine.
68   */
69
70#if defined(RTEMS_MULTIPROCESSING)
71  _MPCI_Register_packet_processor(
72    MP_PACKET_MESSAGE_QUEUE,
73    _Message_queue_MP_Process_packet
74  );
75#endif
76
77}
Note: See TracBrowser for help on using the repository browser.