source: rtems/cpukit/rtems/inline/rtems/rtems/message.inl @ f9293df

4.104.114.95
Last change on this file since f9293df was f9293df, checked in by Joel Sherrill <joel.sherrill@…>, on 04/18/08 at 20:08:08

2008-04-18 Joel Sherrill <joel.sherrill@…>

  • rtems/Doxyfile, rtems/include/rtems/rtems/asr.h, rtems/include/rtems/rtems/attr.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/barriermp.h, rtems/include/rtems/rtems/cache.h, rtems/include/rtems/rtems/config.h, rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/event.h, rtems/include/rtems/rtems/eventmp.h, rtems/include/rtems/rtems/eventset.h, rtems/include/rtems/rtems/intr.h, rtems/include/rtems/rtems/message.h, rtems/include/rtems/rtems/modes.h, rtems/include/rtems/rtems/mp.h, rtems/include/rtems/rtems/msgmp.h, rtems/include/rtems/rtems/options.h, rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/partmp.h, rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/regionmp.h, rtems/include/rtems/rtems/rtemsapi.h, rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/semmp.h, rtems/include/rtems/rtems/signal.h, rtems/include/rtems/rtems/signalmp.h, rtems/include/rtems/rtems/status.h, rtems/include/rtems/rtems/support.h, rtems/include/rtems/rtems/taskmp.h, rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h, rtems/include/rtems/rtems/types.h, rtems/inline/rtems/rtems/asr.inl, rtems/inline/rtems/rtems/attr.inl, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/dpmem.inl, rtems/inline/rtems/rtems/event.inl, rtems/inline/rtems/rtems/message.inl, rtems/inline/rtems/rtems/modes.inl, rtems/inline/rtems/rtems/options.inl, rtems/inline/rtems/rtems/part.inl, rtems/inline/rtems/rtems/ratemon.inl, rtems/inline/rtems/rtems/region.inl, rtems/inline/rtems/rtems/sem.inl, rtems/inline/rtems/rtems/status.inl, rtems/inline/rtems/rtems/support.inl, rtems/inline/rtems/rtems/timer.inl: More Doxygen improvements.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file rtems/rtems/message.inl
3 *
4 *  This include file contains the static inline implementation of all
5 *  inlined routines in the Message Manager.
6 */
7
8/*  COPYRIGHT (c) 1989-2008.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
16 */
17
18#ifndef _RTEMS_RTEMS_MESSAGE_INL
19#define _RTEMS_RTEMS_MESSAGE_INL
20
21#include <rtems/score/wkspace.h>
22
23/**
24 *  @addtogroup ClassicMessageQueue
25 *  @{
26 */
27
28/**
29 *  @brief Message_queue_Is_null
30 *
31 *  This function places the_message at the rear of the outstanding
32 *  messages on the_message_queue.
33 */
34RTEMS_INLINE_ROUTINE boolean _Message_queue_Is_null (
35  Message_queue_Control *the_message_queue
36)
37{
38  return ( the_message_queue == NULL  );
39}
40
41
42/**
43 *  @brief Message_queue_Free
44 *
45 *  This routine deallocates a message queue control block into
46 *  the inactive chain of free message queue control blocks.
47 */
48RTEMS_INLINE_ROUTINE void _Message_queue_Free (
49  Message_queue_Control *the_message_queue
50)
51{
52  _Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
53}
54
55/**
56 *  @brief Message_queue_Get
57 *
58 *  This function maps message queue IDs to message queue control
59 *  blocks.  If ID corresponds to a local message queue, then it
60 *  returns the_message_queue control pointer which maps to ID
61 *  and location is set to OBJECTS_LOCAL.  If the message queue ID is
62 *  global and resides on a remote node, then location is set
63 *  to OBJECTS_REMOTE, and the_message_queue is undefined.
64 *  Otherwise, location is set to OBJECTS_ERROR and
65 *  the_message_queue is undefined.
66 */
67RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
68  Objects_Id         id,
69  Objects_Locations *location
70)
71{
72  return (Message_queue_Control *)
73     _Objects_Get( &_Message_queue_Information, id, location );
74}
75
76/**@}*/
77
78#endif
79/* end of include file */
Note: See TracBrowser for help on using the repository browser.