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

5
Last change on this file since 9c9c6a9 was 9c9c6a9, checked in by Sebastian Huber <sebastian.huber@…>, on 11/21/18 at 16:30:52

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.4 KB
Line 
1/**
2 *  @file
3 *
4 *  @brief Semaphore Manager Initialization
5 *  @ingroup ClassicSem
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/config.h>
22#include <rtems/sysinit.h>
23#include <rtems/rtems/semimpl.h>
24
25Objects_Information _Semaphore_Information;
26
27static void _Semaphore_Manager_initialization(void)
28{
29  _Objects_Initialize_information(
30    &_Semaphore_Information,     /* object information table */
31    OBJECTS_CLASSIC_API,         /* object API */
32    OBJECTS_RTEMS_SEMAPHORES,    /* object class */
33     Configuration_RTEMS_API.maximum_semaphores,
34                                 /* maximum objects of this class */
35    sizeof( Semaphore_Control ), /* size of this object's control block */
36    OBJECTS_NO_STRING_NAME,      /* maximum length of an object name */
37    _Semaphore_MP_Send_extract_proxy /* Proxy extraction support callout */
38  );
39
40  /*
41   *  Register the MP Process Packet routine.
42   */
43
44#if defined(RTEMS_MULTIPROCESSING)
45  _MPCI_Register_packet_processor(
46    MP_PACKET_SEMAPHORE,
47    _Semaphore_MP_Process_packet
48  );
49#endif
50
51}
52
53RTEMS_SYSINIT_ITEM(
54  _Semaphore_Manager_initialization,
55  RTEMS_SYSINIT_CLASSIC_SEMAPHORE,
56  RTEMS_SYSINIT_ORDER_MIDDLE
57);
Note: See TracBrowser for help on using the repository browser.