source: rtems/cpukit/rtems/src/partident.c @ f26145b

4.104.114.84.95
Last change on this file since f26145b was 1095ec1, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/05 at 09:03:45

Include config.h.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  Partition Manager
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
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/status.h>
21#include <rtems/rtems/support.h>
22#include <rtems/score/address.h>
23#include <rtems/score/object.h>
24#include <rtems/rtems/part.h>
25#include <rtems/score/thread.h>
26#include <rtems/score/sysstate.h>
27
28/*PAGE
29 *
30 *  rtems_partition_ident
31 *
32 *  This directive returns the system ID associated with
33 *  the partition name.
34 *
35 *  Input parameters:
36 *    name - user defined partition name
37 *    node - node(s) to be searched
38 *    id   - pointer to partition id
39 *
40 *  Output parameters:
41 *    *id               - partition id
42 *    RTEMS_SUCCESSFUL - if successful
43 *    error code        - if unsuccessful
44 */
45
46rtems_status_code rtems_partition_ident(
47  rtems_name    name,
48  uint32_t      node,
49  Objects_Id   *id
50)
51{
52  Objects_Name_or_id_lookup_errors  status;
53
54  status = _Objects_Name_to_id(
55    &_Partition_Information,
56    (Objects_Name) name,
57    node,
58    id
59  );
60
61  return _Status_Object_name_errors_to_status[ status ];
62}
Note: See TracBrowser for help on using the repository browser.