OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [sapi/] [src/] [extensionident.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
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.OARcorp.com/rtems/license.html.
11
 *
12
 *  extensionident.c,v 1.1 2002/03/15 14:32:22 joel Exp
13
 */
14
 
15
#include <rtems/system.h>
16
#include <rtems/rtems/support.h>
17
#include <rtems/score/object.h>
18
#include <rtems/score/thread.h>
19
#include <rtems/extension.h>
20
 
21
/*PAGE
22
 *
23
 *  rtems_extension_ident
24
 *
25
 *  This directive returns the system ID associated with
26
 *  the extension name.
27
 *
28
 *  Input parameters:
29
 *    name - user defined message queue name
30
 *    id   - pointer to extension id
31
 *
32
 *  Output parameters:
33
 *    *id               - message queue id
34
 *    RTEMS_SUCCESSFUL - if successful
35
 *    error code        - if unsuccessful
36
 */
37
 
38
rtems_status_code rtems_extension_ident(
39
  rtems_name    name,
40
  Objects_Id   *id
41
)
42
{
43
  Objects_Name_to_id_errors  status;
44
 
45
  status = _Objects_Name_to_id(
46
    &_Extension_Information,
47
    &name,
48
    OBJECTS_SEARCH_LOCAL_NODE,
49
    id
50
  );
51
 
52
  return _Status_Object_name_errors_to_status[ status ];
53
}

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.