drv-acpi is the ACPI platform discovery daemon in EriX hardware mediation.
  • Rust 99.1%
  • Linker Script 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Erik Inkinen 48719074e2
All checks were successful
CI / markdown (push) Successful in 13s
CI / test (push) Successful in 1m2s
chore: Merge native CLI development into main
Merge the selected feature/native-cli history with an explicit two-parent commit so main retains the development lineage and the validated source snapshot. The resulting tree is identical to the selected feature commit; no dependency pins or runtime behavior are changed by this merge.

Previous main: c62bee51c2
Selected feature: f1344aaa86

Publish this integration point following the requested cross-repository merge. Preserve the feature branch and immutable dependency objects for reproducibility; do not squash, rebase or rewrite existing commits.
2026-09-12 08:28:40 +03:00
.github build: Pin dependency and CI helper source commits 2026-09-12 07:45:05 +03:00
src refactor: harden ACPI driver authority 2026-08-03 04:41:17 +03:00
.editorconfig Initial commit 2026-03-10 16:30:23 +01:00
.gitignore Ignore local .ci workspace 2026-04-15 21:52:37 +03:00
.markdownlint-cli2.yaml Tighten CI markdown policy 2026-05-22 15:09:55 +03:00
ARCHITECTURE.md build: Pin dependency and CI helper source commits 2026-09-12 07:45:05 +03:00
Cargo.toml build: Pin dependency and CI helper source commits 2026-09-12 07:45:05 +03:00
CODE_OF_CONDUCT.md docs: Synchronize shared contribution and review policies 2026-09-12 06:38:08 +03:00
CONTRIBUTING.md build: Pin dependency and CI helper source commits 2026-09-12 07:45:05 +03:00
LICENSE Initial commit 2026-03-10 16:30:23 +01:00
linker.ld Keep stack reserve pages in runtime images 2026-04-24 08:29:59 +03:00
README.md refactor: harden ACPI driver authority 2026-08-03 04:41:17 +03:00
ROADMAP.md build: Pin dependency and CI helper source commits 2026-09-12 07:45:05 +03:00
rustfmt.toml drv-acpi: drop unstable rustfmt options for stable toolchains 2026-03-23 10:19:51 +02:00
SECURITY.md docs: Synchronize shared contribution and review policies 2026-09-12 06:38:08 +03:00

drv-acpi

drv-acpi is the ACPI platform discovery daemon in EriX hardware mediation.

EriX is a clean-room, capability-based microkernel operating system written entirely in Rust.

Technical requirements are tracked in the EriX requirements, conventions, and project documentation.

See:

  • docs for design documents, specifications, and development plans.
  • Related architecture repositories for kernel, services, libraries, drivers, and integration tooling.

Purpose of This Repository

This repository implements the EriX ACPI platform-discovery driver. Its purpose is to expose a small typed discovery service under explicit deviced / procd ownership.

Functionally, it implements the driver startup, runtime, and validation contracts for acpi. The repository keeps the implementation, interface contracts, tests, and documentation for that behavior in one reviewable ownership boundary.

The maintained responsibilities are:

  • implement the acpi driver logic behind explicit driver authority
  • bind only to the startup-assigned service endpoint, dedicated ACPI RSDP-read kernel-control endpoint, and deviced report endpoint
  • serve fixed typed driver operations without a service-local transport or work ceiling
  • keep discovery diagnostics in typed responses and deviced reports rather than direct kernel log/debug stamps
  • keep driver validation and failure behavior documented for integration tests

Clean-Room Policy

EriX follows a strict clean-room philosophy:

  • No external source code may be copied.
  • No external Rust crates are allowed.
  • No code generation tools that embed third-party code.
  • All code must be authored within the project.

Violations will result in rejection of the contribution.

License

All EriX repositories are licensed under the ISC License.

Development Model

EriX development is modular, deterministic, reproducible, authority-explicit, security-first, and self-hosting oriented.

This repository follows the project roadmap and the validation rules documented in its own roadmap.

Build

cargo build --release --target x86_64-unknown-none \
  --features drv-acpi-integration-smoke,drv-acpi-integration-acpi

Test

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features

VM/system validation is executed through the integration repository scenarios.

Validation Note

The host/test QUERY_CAP fallback remains cfg-scoped so runtime/release builds stay warning-free. Startup and runtime receive paths block on their explicitly delegated endpoint instead of waking on an arbitrary service-local deadline. Required deviced reports retain an exact-capacity client buffer from acceptance through the authoritative reply, and server replies retain the full receive buffer through transient delivery backpressure. The shared IPC transport envelope is the only server-message capacity boundary; drv-acpi retains no private transport ceiling or second full-envelope request copy.

Dynamic Boot Artifact Evidence

The image build packages drv-acpi as an ELF64 x86_64 ET_DYN executable with .erix_dynlink metadata in the signed dynlink-store and mirrors it under /lib/erix/dynlink with its required shared objects.

Startup remains deviced through procd dynamic driver creation with a role- derived executable identity; authority remains the dedicated ACPI RSDP-read endpoint and explicit startup peers. Dynamic packaging and filesystem mirror records are evidence and launch inputs only; they do not grant filesystem, loader, object-store, service-discovery, provider-bypass, block-device, or dynlinkd authority. drv-acpi receives only the documented startup endpoints, peers, and capabilities for its role.

Governance Principles

drv-acpi governance is scoped to the acpi driver role and its assigned hardware/provider authority.

The scoped governance rules are:

  • It must be started and supervised through deviced and procd, not as an independently discovered public service.
  • It uses only its service endpoint, dedicated ACPI RSDP-read endpoint, and deviced report endpoint, all explicitly installed at startup.
  • It keeps hardware-specific behavior inside the driver while leaving device-matching policy to deviced.
  • It rejects malformed device state and unexpected authority instead of broadening access.

Authority Boundaries

  • drv-acpi does not receive named, filesystem-provider, or peer-driver authority.
  • Startup calls, runtime calls, kernel-control replies, and deviced replies are authority-free contracts. Complete unwanted receipts are retired before rejection; malformed receipt state or failed retirement terminates the process so kernel teardown revokes remaining aliases.
  • New hardware access requires explicit manifest, startup, and integration-test coverage.

Contact

Development occurs in EriX organization and discussions happen in issues and design documents.

No decisions are considered valid without documented rationale.

Maintainers can be reached via email: admin@erikinkinen.fi.