How algorift169/galio works
Galio is a freestanding x86_64 operating system with an interactive, privilege-aware shell as its main user workflow: users enter commands or .gh scripts, which use kernel services for filesystem, process, and syscall operations. The product also includes a desktop-style display, device-backed filesystem entries, networking, and power lifecycle support. The graph combines README-described capabilities with relationships visible in the supplied excerpts and SOURCE INDEX; unsampled subsystems are represented at their existing directory paths, without asserting internal calls that were not shown.
Main entry points: shell.c Interactive shell · syscall.c Syscall dispatch · vfs_core.c Virtual filesystem · intptr.c Drift interpreter
Components 19
Shell and scripting
- Interactive shell
tools/shell/shell.c - Shell commands
tools/shell/commands - Drift interpreter
drift/interpreter/core/intptr.c - Drift lexer
drift/lexer/core/lexer.c - Drift parser
drift/parser/core/parser.c
Kernel services
- Authentication and rex
kernel/auth.c - Syscall dispatch
kernel/syscall/syscall.c - Process management
kernel/process/process.c - Memory and paging
kernel/mm/paging.c
Filesystem and devices
- Virtual filesystem
kernel/fs/vfs/vfs_core.c - EXT2 storage
kernel/fs/ext2/ext2.c - Device nodes
kernel/dev/device_manager.c
Hardware and networking
- Device drivers
kernel/drivers - Networking
kernel/net - Power lifecycle
kernel/power
Desktop and display
- Shell UI
ui/src - Display server
gui/src/display/srver/server.c - Framebuffer output
kernel/drivers/video/fb.c
Other components
- User
Connections 20
- User → Interactive shell: enters commands
- Interactive shell → Shell commands: runs commands
- Interactive shell → Drift interpreter: runs scripts
- Drift interpreter → Drift lexer: tokenizes input
drift/interpreter/core/intptr.c - Drift interpreter → Drift parser: parses input
drift/interpreter/core/intptr.c - Interactive shell → Authentication and rex: uses privilege flow
tools/shell/shell.c - Authentication and rex → Virtual filesystem: loads credentials
kernel/auth.c - Shell commands → Syscall dispatch: invokes syscall tools
- Syscall dispatch → Process management: dispatches process calls
kernel/syscall/syscall.c - Syscall dispatch → Virtual filesystem: dispatches filesystem calls
kernel/syscall/syscall.c - Process management → Memory and paging: uses address spaces
kernel/process/process.c - Virtual filesystem → EXT2 storage: uses disk store
- Device nodes → Virtual filesystem: creates device nodes
kernel/dev/device_manager.c - Device nodes → Device drivers: reads device input
kernel/dev/device_manager.c - Interactive shell → Shell UI: uses display UI
tools/shell/shell.c - Syscall dispatch → Display server: references display services
kernel/syscall/syscall.c - Display server → Framebuffer output: renders output
- Display server → Shell UI: draws desktop elements
gui/src/display/srver/server.c - User → Networking: uses network services
- User → Power lifecycle: requests lifecycle actions