Changeset b06e68ef in rtems for cpukit/rtems/inline


Ignore:
Timestamp:
Aug 17, 1995, 7:51:51 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
95fbca1
Parents:
3b438fa
Message:

Numerous miscellaneous features incorporated from Tony Bennett
(tbennett@…) including the following major additions:

+ variable length messages
+ named devices
+ debug monitor
+ association tables/variables

Location:
cpukit/rtems/inline/rtems/rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/inline/rtems/rtems/attr.inl

    r3b438fa rb06e68ef  
    8585/*PAGE
    8686 *
    87  *  _Attributes_Is_limit
    88  *
    89  */
    90 
    91 STATIC INLINE boolean _Attributes_Is_limit(
    92   rtems_attribute attribute_set
    93 )
    94 {
    95    return ( attribute_set & RTEMS_LIMIT );
    96 }
    97 
    98 /*PAGE
    99  *
    10087 *  _Attributes_Is_binary_semaphore
    10188 *
  • cpukit/rtems/inline/rtems/rtems/message.inl

    r3b438fa rb06e68ef  
    1818#define __MESSAGE_QUEUE_inl
    1919
     20#include <rtems/wkspace.h>
     21
    2022/*PAGE
    2123 *
     
    2527
    2628STATIC INLINE void _Message_queue_Copy_buffer (
    27   Message_queue_Buffer *source,
    28   Message_queue_Buffer *destination
     29  void      *source,
     30  void      *destination,
     31  unsigned32 size
    2932)
    3033{
    31   *destination = *source;
     34  memcpy(destination, source, size);
    3235}
    3336
     
    3942
    4043STATIC INLINE Message_queue_Buffer_control *
    41   _Message_queue_Allocate_message_buffer ( void )
     44_Message_queue_Allocate_message_buffer (
     45    Message_queue_Control *the_message_queue
     46)
    4247{
    4348   return (Message_queue_Buffer_control *)
    44      _Chain_Get( &_Message_queue_Inactive_messages );
     49     _Chain_Get( &the_message_queue->Inactive_messages );
    4550}
    4651
     
    5257
    5358STATIC INLINE void _Message_queue_Free_message_buffer (
    54   Message_queue_Buffer_control *the_message
     59    Message_queue_Control        *the_message_queue,
     60    Message_queue_Buffer_control *the_message
    5561)
    5662{
    57  _Chain_Append( &_Message_queue_Inactive_messages, &the_message->Node );
     63  _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
    5864}
    5965
     
    117123}
    118124
    119 /*PAGE
    120  *
    121  *  _Message_queue_Allocate
    122  *
    123  */
    124 
    125 STATIC INLINE Message_queue_Control *_Message_queue_Allocate ( void )
    126 {
    127   return (Message_queue_Control *)
    128      _Objects_Allocate( &_Message_queue_Information );
    129 }
    130125
    131126/*PAGE
     
    139134)
    140135{
     136  if (the_message_queue->message_buffers)
     137  {
     138      _Workspace_Free((void *) the_message_queue->message_buffers);
     139      the_message_queue->message_buffers = 0;
     140  }
     141 
    141142  _Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
    142143}
Note: See TracChangeset for help on using the changeset viewer.