Changeset 3235ad9 in rtems for cpukit/sapi


Ignore:
Timestamp:
Aug 23, 1995, 7:30:23 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5250ff39
Parents:
80e2c29e
Message:

Support for variable length names added to Object Handler. This supports
both fixed length "raw" names and strings from the API's point of view.

Both inline and macro implementations were tested.

Location:
cpukit/sapi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/config.h

    r80e2c29e r3235ad9  
    2222#endif
    2323
     24#include <rtems/types.h>
    2425#include <rtems/object.h>
    2526#include <rtems/thread.h>
     
    3334
    3435typedef struct {
    35   Objects_Name          name;              /* task name */
     36  rtems_name            name;              /* task name */
    3637  unsigned32            stack_size;        /* task stack size */
    3738  rtems_task_priority   initial_priority;  /* task priority */
  • cpukit/sapi/include/rtems/extension.h

    r80e2c29e r3235ad9  
    2929#endif
    3030
     31#include <rtems.h>
    3132#include <rtems/object.h>
    3233#include <rtems/userext.h>
     
    7374
    7475rtems_status_code rtems_extension_create(
    75   Objects_Name                   name,
     76  rtems_name                     name,
    7677  rtems_extensions_table *extension_table,
    7778  Objects_Id                    *id
     
    9091
    9192rtems_status_code rtems_extension_ident(
    92   Objects_Name  name,
     93  rtems_name    name,
    9394  Objects_Id   *id
    9495);
  • cpukit/sapi/include/rtems/init.h

    r80e2c29e r3235ad9  
    3131#endif
    3232
     33#include <rtems/types.h>
    3334#include <rtems/config.h>
    3435#include <rtems/intr.h>
  • cpukit/sapi/src/extension.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/object.h>
    1819#include <rtems/thread.h>
     
    3637{
    3738  _Objects_Initialize_information(
    38      &_Extension_Information,
    39      OBJECTS_RTEMS_EXTENSIONS,
    40      FALSE,
    41      maximum_extensions,
    42      sizeof( Extension_Control )
     39    &_Extension_Information,
     40    OBJECTS_RTEMS_EXTENSIONS,
     41    FALSE,
     42    maximum_extensions,
     43    sizeof( Extension_Control ),
     44    FALSE,
     45    RTEMS_MAXIMUM_NAME_LENGTH
    4346  );
    4447}
     
    6265
    6366rtems_status_code rtems_extension_create(
    64   Objects_Name                   name,
     67  rtems_name                     name,
    6568  rtems_extensions_table *extension_table,
    6669  Objects_Id                    *id
     
    6972  Extension_Control *the_extension;
    7073
    71   if ( !_Objects_Is_name_valid( name ) )
     74  if ( !rtems_is_name_valid( name ) )
    7275    return ( RTEMS_INVALID_NAME );
    7376
     
    8386  _User_extensions_Add_set( &the_extension->Extension, extension_table );
    8487
    85   _Objects_Open( &_Extension_Information, &the_extension->Object, name );
     88  _Objects_Open( &_Extension_Information, &the_extension->Object, &name );
    8689
    8790  *id = the_extension->Object.id;
     
    108111
    109112rtems_status_code rtems_extension_ident(
    110   Objects_Name  name,
     113  rtems_name    name,
    111114  Objects_Id   *id
    112115)
     
    114117  return _Objects_Name_to_id(
    115118    &_Extension_Information,
    116     name,
     119    &name,
    117120    RTEMS_SEARCH_LOCAL_NODE,
    118121    id
Note: See TracChangeset for help on using the changeset viewer.