⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module sync

Module sync 

Source
Expand description

Synchronization Primitives

Safe synchronization and global state management for Rust 2024 edition.

Includes lock-free data structures for high-performance kernel paths:

  • RCU (Read-Copy-Update) for read-heavy data structures
  • Hazard pointers for safe memory reclamation
  • Lock-free MPSC queue for scheduler ready queues

Re-exports§

pub use lockfree_queue::LockFreeQueue;
pub use once_lock::GlobalState;
pub use once_lock::LazyLock;
pub use once_lock::OnceLock;

Modules§

hazard
Hazard Pointer Registry
lockfree_queue
Lock-Free MPSC Queue
once_lock
Safe Global Initialization (Rust 2024 Compatible)
rcu
Read-Copy-Update (RCU) Synchronization