RTEMS Logo

RTEMS 4.10.2 On-Line Library


Chains Initialize Chain With Nodes

PREV UP NEXT Bookshelf RTEMS C User's Guide

28.4.1: Initialize Chain With Nodes

CALLING SEQUENCE:

void rtems_chain_initialize(
  rtems_chain_control *the_chain,
  void                *starting_address,
  size_t               number_nodes,
  size_t               node_size
)

RETURNS

Returns nothing.

DESCRIPTION:

This function take in a pointer to a chain control and initializes it to contain a set of chain nodes. The chain will contain number_nodes chain nodes from the memory pointed to by start_address. Each node is assumed to be node_size bytes.

NOTES:

This call will discard any nodes on the chain.

This call does NOT inititialize any user data on each node.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation