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