source: rtems/cpukit/score/inline/rtems/score/mppkt.inl @ 6390256

4.104.115
Last change on this file since 6390256 was 6390256, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/22/08 at 09:22:17

Eliminate TRUE/FALSE.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 *  @file  rtems/score/mppkt.inl
3 *
4 *  This package is the implementation of the Packet Handler
5 *  routines which are inlined.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2004.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_SCORE_MPPKT_H
20# error "Never use <rtems/score/mppkt.inl> directly; include <rtems/score/mppkt.h> instead."
21#endif
22
23#ifndef _RTEMS_SCORE_MPPKT_INL
24#define _RTEMS_SCORE_MPPKT_INL
25
26/**
27 *  @addtogroup ScoreMPPacket
28 *  @{
29 */
30
31/**
32 *  This function returns true if the the_packet_class is valid,
33 *  and false otherwise.
34 *
35 *  @note Check for lower bounds (MP_PACKET_CLASSES_FIRST ) is unnecessary
36 *        because this enum starts at lower bound of zero.
37 */
38
39RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_valid_packet_class (
40  MP_packet_Classes the_packet_class
41)
42{
43  return ( the_packet_class <= MP_PACKET_CLASSES_LAST );
44}
45
46/**
47 *  This function returns true if the the_packet_class is null,
48 *  and false otherwise.
49 */
50
51RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_null (
52  MP_packet_Prefix   *the_packet
53)
54{
55  return the_packet == NULL;
56}
57
58/**@}*/
59
60#endif
61/* end of include file */
Note: See TracBrowser for help on using the repository browser.