1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Core kernel mechanisms for reovim.
//!
//! Linux equivalent: `kernel/`
//!
//! This crate provides pure mechanisms without I/O. Drivers and modules
//! implement policies using these primitives.
//!
//! # Usage
//!
//! All public APIs are accessed via the `api::v1` module:
//!
//! ```ignore
//! use reovim_kernel::api::v1::*;
//!
//! // Check API compatibility
//! check_api_version(Version::new(1, 0, 0))?;
//!
//! // Use kernel types
//! let bus = EventBus::new();
//! pr_info!("kernel initialized");
//! ```
//!
//! # Subsystems
//!
//! Internal subsystems (not directly accessible):
//!
//! - `sched`: Scheduler and runtime (Linux: `kernel/sched/`)
//! - `mm`: Memory management / buffers (Linux: `mm/`)
//! - `ipc`: Inter-process communication / events (Linux: `ipc/`)
//! - `core`: Core primitives (motion, text objects, commands)
//! - `block`: Block operations (undo, transactions)
//! - `printk`: Kernel logging (Linux: `kernel/printk/`)
//! - `debug`: Tracing and metrics
//! - `panic`: Panic handling and recovery
//!
//! All subsystem types are re-exported through `api::v1`.
// ============================================================================
// Public API - the ONLY public module
// ============================================================================
// ============================================================================
// Internal modules - NOT accessible from outside
// ============================================================================
pub
pub
// Infrastructure for future use
pub
pub
pub
// Infrastructure for future use
pub
pub
pub
// Re-export arch for internal use only
pub use reovim_arch as arch;