Expand description
The kernel’s deadline reservation on the calling thread (issue 2018).
The reservation is C, in the POSIX port
(nros_posix_apply_current_deadline in nros-platform-posix), for the
reason termination gives. It is reached only on a build that selected
that port. A cfg(unix) gate is not enough: Zephyr native_sim, and the
host tiers of ThreadX and FreeRTOS, target a Linux triple without the POSIX
port. Their port defines no nros_posix_* symbol, so a reference made the
linker take the POSIX platform.o from whichever archive carried one, and
every other symbol in it then collided with the image’s own port
(issue 2032; issue 1776 had the same shape).
Functions§
- apply_
current_ ⚠deadline - Ask the kernel to reserve
budget_useveryperiod_usfor the calling thread. Returnstruewhen the kernel took it, andfalseotherwise. That covers a tier class that asks for no reservation, a refusal (noCAP_SYS_NICE), and a build whose port has no such kernel facility. Onfalsethe caller enforces the budget itself.