Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
boot_id.h File Reference

Read Linux's boot-unique identifier for pose-log session provenance. More...

#include <fcntl.h>
#include <stdio.h>
Include dependency graph for boot_id.h:
This graph shows which files directly or indirectly include this file:

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()

void usher_boot_id ( char result[37])
inlinestatic

Fill a 36-character boot UUID or the stable fallback "unknown".

Parameters
resultCaller 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.

Definition at line 36 of file boot_id.h.