drv-ps2-mouse is the PS/2 pointer protocol translator daemon.
  • Rust 98.4%
  • Linker Script 1.6%
Find a file
Erik Inkinen 3893c4017e
All checks were successful
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 19s
Tighten CI markdown policy
2026-05-22 15:09:58 +03:00
.github Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
src Harden inputd endpoint authority 2026-04-21 10:35:09 +03:00
.editorconfig Initial commit 2026-03-11 10:16:01 +01:00
.gitignore Ignore local .ci workspace 2026-04-15 21:52:39 +03:00
.markdownlint-cli2.yaml Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
ARCHITECTURE.md Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
Cargo.toml Point drv-ps2-mouse git dependencies at main branch 2026-04-22 04:55:17 +03:00
CODE_OF_CONDUCT.md Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
CONTRIBUTING.md Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
LICENSE Initial commit 2026-03-11 10:16:01 +01:00
linker.ld Keep stack reserve pages in runtime images 2026-04-24 08:29:59 +03:00
README.md Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
ROADMAP.md Tighten CI markdown policy 2026-05-22 15:09:58 +03:00
rustfmt.toml drv-ps2-mouse: drop unstable rustfmt options for stable toolchains 2026-03-23 10:19:51 +02:00
SECURITY.md Tighten CI markdown policy 2026-05-22 15:09:58 +03:00

drv-ps2-mouse

drv-ps2-mouse is the PS/2 pointer protocol translator daemon.

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 ps2 mouse driver service. Its purpose in EriX is to mediate ps2 mouse hardware or protocol behavior under explicit deviced / procd ownership.

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

The maintained responsibilities are:

  • implement the ps2 mouse driver logic behind explicit driver authority
  • bind only to startup-assigned device, interrupt, and transport capabilities
  • serve bounded driver operations without creating public service authority
  • 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.

Runtime model

  • Single-threaded event loop.
  • Fixed message buffer (1024 bytes).
  • Fixed packet assembly buffer (3 bytes).
  • Monotonic request IDs for read/append calls.

Feature flags

  • drv-ps2-mouse-runtime
  • drv-ps2-mouse-runtime-phase3-input
  • compatibility aliases:
    • drv-ps2-mouse-integration-smoke
    • drv-ps2-mouse-integration-phase3-input
    • drv-ps2-mouse-integration-force-fail

Build and test

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

Dependencies

  • lib-bootstrap
  • lib-capabi
  • lib-ipc
  • lib-service
  • lib-input
  • ipc-syscall-x86_64

No third-party crates are used.

Governance Principles

drv-ps2-mouse governance is scoped to the ps2 mouse 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 the device, interrupt, transport, and provider capabilities explicitly transferred 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-ps2-mouse does not receive named, filesystem-provider, or peer-driver authority.
  • 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.