source: rtems/cpukit/rtems/src/msg.c @ 9c9c6a9

Last change on this file since 9c9c6a9 was 9c9c6a9, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 21, 2018 at 4:30:52 PM

score: Remove Objects_Information::is_string

Use Objects_Information::name_length to store this information.

Update #3621.

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