source: rtems/cpukit/score/src/objectgetinfo.c @ 91b8fb9e

4.104.114.95
Last change on this file since 91b8fb9e was 91b8fb9e, checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/08 at 14:14:27

2008-01-31 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/object.h, score/src/objectgetinfo.c, rtems/include/rtems/rtems/object.h, rtems/src/rtemsobjectgetapiclassname.c, rtems/src/rtemsobjectgetclassinfo.c: class is a C++ keyword and cannot be used as a parameter.
  • Property mode set to 100644
File size: 879 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems/system.h>
17#include <rtems/score/object.h>
18#include <rtems/score/thread.h>
19#include <rtems/score/wkspace.h>
20
21Objects_Information *_Objects_Get_information(
22  Objects_APIs   the_api,
23  uint32_t       the_class
24)
25{
26  Objects_Information *info;
27
28  if ( !_Objects_Is_api_valid( the_api ) )
29    return NULL;
30
31  if ( !the_class || the_class > _Objects_API_maximum_class(the_api) )
32    return NULL;
33
34  info = _Objects_Information_table[ the_api ][ the_class ];
35  if ( !info )
36    return NULL;
37
38  if ( info->maximum == 0 )
39    return NULL;
40
41  return info;
42}
43
Note: See TracBrowser for help on using the repository browser.