linked lists

Ralf Corsepius ralf.corsepius at rtems.org
Thu Aug 23 07:56:01 UTC 2012


On 08/23/2012 09:17 AM, Fered wrote:
> Hi;
> Some questions about linked lists in RTEMS:
>
> 1- Is the recommended method for having linked lists, using Chain_Control
> struct?

Depends on what you are aiming at.

For non-directly RTEMS related works (e.g. libraries), I recommend using 
BSD linked lists. Though they are not covered by common standard, the 
implementation is very lean and widely present on almost all system 
(Comprising Linux, the BSDs and many other OSes).

In RTEMS, they are provided as part of the toolchain's header (c.f. 
/opt/rtems*/<target>/include/sys/queue.h).

Ralf





More information about the devel mailing list