| Crates.io | tg-kernel-vm |
| lib.rs | tg-kernel-vm |
| version | 0.1.0-preview.1 |
| created_at | 2026-01-22 05:38:49.812914+00 |
| updated_at | 2026-01-22 05:38:49.812914+00 |
| description | Kernel virtual memory management for rCore tutorial OS. |
| homepage | |
| repository | https://github.com/rcore-os/rCore-Tutorial-in-single-workspace |
| max_upload_size | |
| id | 2060828 |
| size | 15,464 |
Kernel virtual memory management for the rCore tutorial operating system.
This crate provides virtual memory management utilities for RISC-V based kernel development. It offers abstractions for managing address spaces, page tables, and physical page allocation.
page-table crateuse tg_kernel_vm::{AddressSpace, PageManager, page_table};
use page_table::{Pte, VmFlags, VmMeta, PPN};
// Implement the PageManager trait for your memory allocator
struct MyPageManager { /* ... */ }
impl<Meta: VmMeta> PageManager<Meta> for MyPageManager {
fn new_root() -> Self { /* ... */ }
fn root_ptr(&self) -> NonNull<Pte<Meta>> { /* ... */ }
// ... other methods
}
PageManager<Meta> - Trait for physical page management including:
page-table - Page table manipulation primitivesLicensed under either of MIT license or Apache License, Version 2.0 at your option.