◈ Passerelle

Project

ADR-002 — one conversion point from QNX priority to scheduler urgency

Context

Two priority conventions meet in this project and they point in opposite directions:

The first implementation passed the QNX priority straight through to the scheduler. The consequence was measured by the directed case written for PERF-05: a background copy at QNX priority 250 <strong>overtook</strong> a control-loop read at priority 10. On the target, PERF-05 was inverted — exactly the behaviour the requirement forbids, and the one a real-time user would notice first.

Decision

Convert <strong>once</strong>, at the boundary, and make the rest of the project speak a single convention:

The conversion is a static inline in a header, so there is no second place to get it wrong, and the driver re-applies the caller priority for the whole exchange (drivers/common/src/prio_qnx.c).

Consequences