4.115
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Initialization for the API Mutexe Handler. |
---|
5 | * |
---|
6 | * @ingroup ScoreAPIMutex |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2007. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/system.h> |
---|
23 | #include <rtems/score/apimutex.h> |
---|
24 | |
---|
25 | void _API_Mutex_Initialization( |
---|
26 | uint32_t maximum_mutexes |
---|
27 | ) |
---|
28 | { |
---|
29 | _Objects_Initialize_information( |
---|
30 | &_API_Mutex_Information, /* object information table */ |
---|
31 | OBJECTS_INTERNAL_API, /* object API */ |
---|
32 | OBJECTS_INTERNAL_MUTEXES, /* object class */ |
---|
33 | maximum_mutexes, /* maximum objects of this class */ |
---|
34 | sizeof( API_Mutex_Control ), /* size of this object's control block */ |
---|
35 | false, /* true if the name is a string */ |
---|
36 | 0 /* maximum length of an object name */ |
---|
37 | #if defined(RTEMS_MULTIPROCESSING) |
---|
38 | , |
---|
39 | true, /* true if this is a global object class */ |
---|
40 | NULL /* Proxy extraction support callout */ |
---|
41 | #endif |
---|
42 | ); |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.