1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * This file contains the initialization of the POSIX Spinlock Manager. |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * COPYRIGHT (c) 1989-2013. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.org/license/LICENSE. |
---|
14 | */ |
---|
15 | |
---|
16 | #if HAVE_CONFIG_H |
---|
17 | #include "config.h" |
---|
18 | #endif |
---|
19 | |
---|
20 | #include <limits.h> |
---|
21 | |
---|
22 | #include <rtems/system.h> |
---|
23 | #include <rtems/config.h> |
---|
24 | #include <rtems/sysinit.h> |
---|
25 | #include <rtems/posix/spinlockimpl.h> |
---|
26 | |
---|
27 | Objects_Information _POSIX_Spinlock_Information; |
---|
28 | |
---|
29 | /** |
---|
30 | * @brief _POSIX_Spinlock_Manager_initialization |
---|
31 | */ |
---|
32 | static void _POSIX_Spinlock_Manager_initialization(void) |
---|
33 | { |
---|
34 | _Objects_Initialize_information( |
---|
35 | &_POSIX_Spinlock_Information, /* object information table */ |
---|
36 | OBJECTS_POSIX_API, /* object API */ |
---|
37 | OBJECTS_POSIX_SPINLOCKS, /* object class */ |
---|
38 | Configuration_POSIX_API.maximum_spinlocks, |
---|
39 | /* maximum objects of this class */ |
---|
40 | sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */ |
---|
41 | true, /* true if the name is a string */ |
---|
42 | _POSIX_PATH_MAX /* maximum length of each object's name */ |
---|
43 | #if defined(RTEMS_MULTIPROCESSING) |
---|
44 | , |
---|
45 | false, /* true if this is a global object class */ |
---|
46 | NULL /* Proxy extraction support callout */ |
---|
47 | #endif |
---|
48 | ); |
---|
49 | } |
---|
50 | |
---|
51 | RTEMS_SYSINIT_ITEM( |
---|
52 | _POSIX_Spinlock_Manager_initialization, |
---|
53 | RTEMS_SYSINIT_POSIX_SPINLOCK, |
---|
54 | RTEMS_SYSINIT_ORDER_MIDDLE |
---|
55 | ); |
---|