Chain_Control Struct Reference
[Chain Handler]

#include <chain.h>

Collaboration diagram for Chain_Control:

Collaboration graph
[legend]

Data Fields

Chain_Nodefirst
Chain_Nodepermanent_null
Chain_Nodelast

Detailed Description

This is used to manage a chain. A chain consists of a doubly linked list of zero or more nodes.

Note:
This implementation does not require special checks for manipulating the first and last elements on the chain. To accomplish this the Chain_Control structure is treated as two overlapping Chain_Node structures. The permanent head of the chain overlays a node structure on the first and permanent_null fields. The permanent tail of the chain overlays a node structure on the permanent_null and last elements of the structure.

Field Documentation

This field is always 0.

Referenced by _Chain_Initialize_empty(), and _Chain_Tail().

This points to the last node on this chain.

Referenced by _Chain_Append_unprotected(), _Chain_Has_only_one_node(), _Chain_Initialize_empty(), and _Watchdog_Last().


The documentation for this struct was generated from the following file:

Generated on Sat Jul 19 18:16:30 2008 for RTEMSSuperCore by  doxygen 1.5.6