source: rtems/cpukit/rtems/src/msg.c @ 66cb142

5
Last change on this file since 66cb142 was f05eeb2, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/16 at 11:39:00

score: Simplify _Objects_Initialize_information()

Remove unused supports_global parameter. Convert
_Objects_Initialize_information() to a macro to avoid use of
RTEMS_MULTIPROCESSING define for each caller.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[c18e0ba]1/**
2 *  @file
[ac7d5ef0]3 *
[c18e0ba]4 *  @brief Message Queue Manager Initialization
5 *  @ingroup ClassicMessageQueue
6 */
7
8/*
[db80f11]9 *  COPYRIGHT (c) 1989-2008.
[ac7d5ef0]10 *  On-Line Applications Research Corporation (OAR).
11 *
[98e4ebf5]12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
[c499856]14 *  http://www.rtems.org/license/LICENSE.
[ac7d5ef0]15 */
16
[1095ec1]17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
[ac7d5ef0]21#include <rtems/system.h>
[db80f11]22#include <rtems/config.h>
[ed8b00e6]23#include <rtems/sysinit.h>
[3652ad35]24#include <rtems/rtems/status.h>
[63d229d6]25#include <rtems/rtems/attrimpl.h>
[993a888]26#include <rtems/rtems/messageimpl.h>
[3652ad35]27#include <rtems/rtems/options.h>
28#include <rtems/rtems/support.h>
[ac7d5ef0]29
[ed8b00e6]30Objects_Information _Message_queue_Information;
31
32static void _Message_queue_Manager_initialization(void)
[ac7d5ef0]33{
34  _Objects_Initialize_information(
[90015e7f]35    &_Message_queue_Information,  /* object information table */
36    OBJECTS_CLASSIC_API,          /* object API */
37    OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */
[05c1886]38    Configuration_RTEMS_API.maximum_message_queues,
[db80f11]39                                  /* maximum objects of this class */
[3235ad9]40    sizeof( Message_queue_Control ),
[db80f11]41                                  /* size of this object's control block */
[eaef4657]42    false,                        /* true if names of this object are strings */
[f05eeb2]43    RTEMS_MAXIMUM_NAME_LENGTH,    /* maximum length of each object's name */
[db80f11]44    _Message_queue_MP_Send_extract_proxy
45                                  /* Proxy extraction support callout */
[ac7d5ef0]46  );
[3a4ae6c]47
48  /*
49   *  Register the MP Process Packet routine.
50   */
51
[97e2729d]52#if defined(RTEMS_MULTIPROCESSING)
[3a4ae6c]53  _MPCI_Register_packet_processor(
54    MP_PACKET_MESSAGE_QUEUE,
55    _Message_queue_MP_Process_packet
56  );
[97e2729d]57#endif
[3a4ae6c]58
[3b438fa]59}
[ed8b00e6]60
61RTEMS_SYSINIT_ITEM(
62  _Message_queue_Manager_initialization,
63  RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE,
64  RTEMS_SYSINIT_ORDER_MIDDLE
65);
Note: See TracBrowser for help on using the repository browser.