SexOS · Server Reference

Server Reference Manual

All ring-3 server processes in servers/. Architecture: x86_64 no_std Rust, PDX IPC, PKU isolation. Cross-reference with System Developer Manual for kernel internals.

1. Server Architecture Overview

All SexOS servers share a common architecture:

2. sexdisplay — Compositor & Display Server

PropertyValue
PKEY1 (trusted display domain)
RoleFramebuffer owner, SexCompositor host, scanout engine
Key TypeSexWindowCreateParams, SilkbarRegisterParams
IPCPDX calls for window creation, frame commit, view switching

SexCompositor Design

3. silk-shell — Window Manager & Desktop Shell

PropertyValue
RoleMain user-facing desktop process
Key FeaturesHID event dequeuing, FB layout queries, workspace switching, window move/resize
App LaunchingVia sex-ld dynamic linker

4. sexinput — Input / PS2 Driver

PropertyValue
RolePS/2 keyboard + mouse driver, HID event source
OutputPDX ring buffer → sexdisplay → focused PD
Scancode DecodingFull PS/2 scancode set 2 → HID event translation

5. sexfiles — Virtual Filesystem Server

PropertyValue
RoleUnified VFS with multi-backend support
BackendsExt4, Btrfs, FAT32, NTFS, ramfs
IPCPDX-based VFS operations; block I/O dispatch to sexdrive
CacheLock-free 2Q LRU cache with shared physical pages
Architecture100% lock-free trampoline polling loop, 3-cycle PKU handover for large I/O

6. sexdrive — NVMe / AHCI Storage Driver

PropertyValue
RoleProduction-grade NVMe/AHCI block I/O
TransferZero-copy DMA via Lent-Memory capabilities
InterruptsMSI-X routing to driver SPSC rings
PCIPciCapData resolution for BAR discovery

7. sexshop — Object & Package Store

PropertyValue
RoleBackend package index, metadata, signing, mirror sync, secure download daemon
Clientsex-hub — GUI app store front-end (native Silk app)
IPCPDX communication between sex-hub and sexshop (zero-copy)

8. sexnet — Network Manager

PropertyValue
RoleUser-space TCP/IP stack with WireGuard support
PDX CallsSEXNET_GET_STATUS, SEXNET_SCAN_WIFI
TransferZero-copy packet transfer via lent-memory

9. sexnode — Cluster Node & Translator

PropertyValue
RoleTranslator discovery, on-the-fly ELF→Sex binary translation, distributed node discovery
Key FeatureLinux driver hot-plug translation via DDE-style wrappers
RevocationRevokeKey Multicast — hardware-accelerated capability revocation across sexnode

10. sex-ld — Dynamic Linker

PropertyValue
RoleDynamic ELF linking for SexOS userland applications
UsageApp launching from silk-shell: sex-ld /path/to/app.elf