Read Linux's boot-unique identifier for pose-log session provenance. More...
#include <fcntl.h>#include <stdio.h>

Go to the source code of this file.
Functions | |
| static void | usher_boot_id (char result[37]) |
| Fill a 36-character boot UUID or the stable fallback "unknown". | |
Detailed Description
Read Linux's boot-unique identifier for pose-log session provenance.
A boot ID distinguishes monotonic timestamps from two daemon runs after a board reboot. Failure is nonfatal and intentionally represented as "unknown" so logging remains available on non-Linux development systems.
Definition in file boot_id.h.
Function Documentation
◆ usher_boot_id()
|
inlinestatic |
Fill a 36-character boot UUID or the stable fallback "unknown".
- Parameters
-
result Caller buffer of exactly 37 bytes, including the terminator.
Input is strictly validated instead of trusting procfs text, because this value becomes durable log metadata and should never contain a partial read.