Skip to content

Kernel Interface Reference

Syn_OS exposes AI state and observability data to userspace through a set of loadable Rust kernel modules built on Rust-for-Linux. The interface pattern is: misc character device + ioctl, with memory-safe UserSlice I/O.

Security model:

PropertyValue
Access gateCAP_SYS_ADMIN required on every operation
Device nodesRoot-only (0600) via udev rules
Module signingEnforced — build stage 02b hard-fails if the kernel signing key is absent
Boot validationQEMU boot + ioctl assertion test (synos-module-boot-test.sh)

The kernel-module interface covers the following domains:

DomainDescription
Consciousness stateAI decision cache, stimulus submission, AI-memory update, eBPF monitor table, quantum state, metrics — with real ktime latency instrumentation
Namespace trustNamespace trust classification for container/process isolation
io_uring auditPer-PID io_uring operation audit
Incident ring bufferKernel-side incident event sink, ring-buffered
Mitigation stateCPU and kernel mitigation-posture query (NIST-aligned)
Observability countersKernel-observable counters and perf ring buffers

The Curtain v4 LSM hook intercepts each interface call and consults the calling process’s capability token before dispatching:

Operation domaingrimoire-publicgoodlifeenterprise
Consciousness state (read-only)allowed (read-only)allowed (read-only)allowed
AI dispatch / memory updateENOSYSallowed (research-mode)allowed
Fragment Field IDS stateuserspace-only pathkernel + userspaceallowed
Observability countersallowedallowedallowed
Incident sinkallowedallowedallowed
Mitigation stateallowedallowedallowed

Read more: Curtain Capability Tokens →

errnoMeaning
ENOSYSOperation denied by Curtain v4 capability token for this tier
EPERMThe kernel taint flag is set; Enterprise Edition claims revoked
EAGAINThe fusion pipeline is at capacity — back off and retry
EINVALArgument structure failed validation
EFAULTcopy_from_user / copy_to_user failed
ETIMEDOUTSynchronous decision exceeded its latency budget
Terminal window
/proc/synos/consciousness # current ConsciousnessState
/proc/synos/fragment-field # Fragment Field IDS energy state
/proc/synos/observability/* # registered counters
/proc/synos/attest/ledger # HMAC-SHA256 attestation chain
dmesg | grep -i synos
synos-doctor --kernel