Files
RedBear-OS/local
vasilito 3d1f774f8d driver-manager: N8 — per-driver [driver.params] parsing + env emission
Closes the v4.8 cross-cutting item 'modprobe.d options parser':
the new format's [driver.params] table (e.g. 50-amdgpu.toml's
radeon_overlap / amdgpu_force / amdgpu_disable_accel knobs) is now
parsed from every [[driver]] entry and emitted to the spawned child
as REDBEAR_DRIVER_PARAM_<NAME>=<value> env vars.

RawDriverEntry grows a new field:
  params: BTreeMap<String, String>

parsed at load_all time into a Vec<(name, value)> on DriverConfig
(preserving BTreeMap's sorted iteration order for deterministic
env-var emission).

The spawn path applies self.params after the existing
[[options]] env-var emission; both share the REDBEAR_DRIVER_PARAM_*
prefix so drivers don't need to distinguish the two sources.

Matching semantics (radeon_overlap='exclusive', amdgpu_force=true)
remain a follow-up — the env-var wiring is the foundational piece,
and 50-amdgpu.toml's radeon_overlap knob can be honoured by the
radeon driver daemon reading its env-var directly.

Tests (2 new):
- load_all_parses_driver_params: 3-params TOML entry parses
  with deterministic sorted iteration
- load_all_driver_params_default_empty: a [[driver]] without
  [driver.params] still parses, params list is empty

162 driver-manager tests pass.
driver-manager-audit-no-stubs.py: 46 files, 0 violations.
2026-07-27 17:05:12 +09:00
..