4.104.114.84.95
Last change
on this file since e36865d was
e36865d,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/09/05 at 14:13:35
|
2005-06-09 Jacques Seronie Vivien <jacques.seronievivien@…>
PR 790/rtems
- sapi/src/extensioncreate.c, sapi/src/extensionident.c: Correct use of
name. This was missed when the other ident services in rtems/src
where changed.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * Extension Manager -- rtems_extension_ident |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-2002. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/rtems/support.h> |
---|
21 | #include <rtems/score/object.h> |
---|
22 | #include <rtems/score/thread.h> |
---|
23 | #include <rtems/extension.h> |
---|
24 | |
---|
25 | /*PAGE |
---|
26 | * |
---|
27 | * rtems_extension_ident |
---|
28 | * |
---|
29 | * This directive returns the system ID associated with |
---|
30 | * the extension name. |
---|
31 | * |
---|
32 | * Input parameters: |
---|
33 | * name - user defined message queue name |
---|
34 | * id - pointer to extension id |
---|
35 | * |
---|
36 | * Output parameters: |
---|
37 | * *id - message queue id |
---|
38 | * RTEMS_SUCCESSFUL - if successful |
---|
39 | * error code - if unsuccessful |
---|
40 | */ |
---|
41 | |
---|
42 | rtems_status_code rtems_extension_ident( |
---|
43 | rtems_name name, |
---|
44 | Objects_Id *id |
---|
45 | ) |
---|
46 | { |
---|
47 | Objects_Name_or_id_lookup_errors status; |
---|
48 | |
---|
49 | status = _Objects_Name_to_id( |
---|
50 | &_Extension_Information, |
---|
51 | (Objects_Name) name, |
---|
52 | OBJECTS_SEARCH_LOCAL_NODE, |
---|
53 | id |
---|
54 | ); |
---|
55 | |
---|
56 | return _Status_Object_name_errors_to_status[ status ]; |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.