Sebastian Huber 26a73bcdec score: Flatten the red-black tree node
The red-black tree node held its links and its color in a nested
member.  The nesting came from the entry macro of the header which the
previous commit removed.  It served no purpose, and each access had to
name the nested member.

Move the links and the color into the node.  Change the prefix of the
fields from rbe_ of the entry to rbn_ of the node.  The Linux API
wrapper <linux/rbtree.h> renames the Linux fields with
"#define rb_left rbn_left" and "#define rb_right rbn_right".  Other
Linux compatibility layers such as the linuxkpi of FreeBSD define
rb_left and rb_right as object-like macros.  The prefix rbn_ is no
Linux name, so these macros leave the fields alone.

The tests sprbtree01 and ts-unit-no-clock-0 passed on the boards of
eight targets.

  Target                    Processor
  aarch64/zynqmp_apu        Cortex-A53
  LS1046A                   Cortex-A72
  arm/zynqmp_rpu_lock_step  Cortex-R5F
  arm/samrh71_flexram       Cortex-M7
  arm/xilinx_zynq_zc702     Cortex-A9
  riscv/mpfs_e51            E51
  riscv/mpfs_u54            U54
  sparc/gr740               LEON4

Update #5804.

Assisted-by: Claude:claude-opus-5-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-10-14 15:20:12 +11:00
…
2026-02-01 19:24:33 -06:00
…
…

Real-Time Executive for Multiprocessing Systems

RTEMS is a real-time executive (kernel) which provides a high performance environment for embedded applications with the following features:

  • Standards based user interfaces.
  • Multitasking capabilities.
  • Homogeneous and heterogeneous multiprocessor systems.
  • Symmetric Multiprocessing (SMP):
    • Cluster scheduling: Job-level fixed prority scheduler (EDF) with support for one-to-one and one-to-all thread to processor affinities.
    • Locking protocols with transitive priority inheritance, priority ceiling, MRsP and OMIP.
  • Event-driven, priority-based, preemptive scheduling.
  • Scalable timer and timeout support.
  • Optional rate monotonic scheduling.
  • Intertask communication and synchronisation.
  • Priority inheritance.
  • Responsive interrupt management.
  • Dynamic memory allocation.
  • Dynamic code loading using run-time link editing.
  • File systems, IMFS, FAT, RFS, JFFS, NSFv4 (with LibBSD)
  • High level of user configurability.
  • Link-time configurable schedulers.
  • Linker-set based initialization (similar to global C++ constructors).
  • Drivers for I2C, SPI and LibBSD has NIC, USB, SD/MMC and Framebuffer.
  • Open source with a friendly user license.

RTEMS Project:

Project git repositories are located at:

Online documentation is available at:

RTEMS Doxygen for CPUKit:

RTEMS POSIX 1003.1 Compliance Guide:

RTEMS Discourse User forum for questions, answers and examples:

RTEMS Discord for support:

RTEMS Mailing Lists for general purpose use the users list and for developers use the devel list.

The version number for this software in releases is located in the VERSION file if present.

S
Description
RTEMS is a ​real-time executive in use by embedded systems applications around the world and beyond
Readme
141 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 93.9%
Assembly 3.4%
Ada 1.4%
Python 0.3%
HTML 0.3%
Other 0.4%