Changeset db03bcc1 in rtems


Ignore:
Timestamp:
11/20/08 21:12:59 (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
3e9b621
Parents:
7ff6115
Message:

2008-11-20 Joel Sherrill <joel.sherrill@…>

PR 1340/cpukit

  • sapi/inline/rtems/chain.inl: Add rtems_chain_initialize to public chain API.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7ff6115 rdb03bcc1  
     12008-11-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1340/cpukit
     4        * sapi/inline/rtems/chain.inl: Add rtems_chain_initialize to public
     5        chain API.
     6
    172008-11-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/sapi/inline/rtems/chain.inl

    r7ff6115 rdb03bcc1  
    3838
    3939/**
     40 *  @brief Initialize a Chain Header
     41 *
     42 *  This routine initializes @a the_chain structure to manage the
     43 *  contiguous array of @a number_nodes nodes which starts at
     44 *  @a starting_address.  Each node is of @a node_size bytes.
     45 *
     46 *  @param[in] the_chain specifies the chain to initialize
     47 *  @param[in] starting_address is the starting address of the array
     48 *         of elements
     49 *  @param[in] number_nodes is the number of nodes that will be in the chain
     50 *  @param[in] node_size is the size of each node
     51 */
     52RTEMS_INLINE_ROUTINE void rtems_chain_initialize(
     53  rtems_chain_control *the_chain,
     54  void                *starting_address,
     55  size_t               number_nodes,
     56  size_t               node_size
     57)
     58{
     59  _Chain_Initialize( the_chain, starting_address, number_nodes, node_size );
     60}
     61
     62/**
    4063 *  @brief Initialize this Chain as Empty
    4164 *
Note: See TracChangeset for help on using the changeset viewer.