tg-kernel-alloc

Crates.iotg-kernel-alloc
lib.rstg-kernel-alloc
version0.1.0-preview.1
created_at2026-01-22 05:24:26.65676+00
updated_at2026-01-22 05:24:26.65676+00
descriptionKernel memory allocator for rCore tutorial OS using buddy allocation.
homepage
repositoryhttps://github.com/rcore-os/rCore-Tutorial-in-single-workspace
max_upload_size
id2060812
size6,929
Yiren Zhang (DeathWish5)

documentation

https://docs.rs/tg-kernel-alloc

README

tg-kernel-alloc

Crates.io Documentation License

内核内存分配器模块,为 rCore 教学操作系统提供基于 buddy 算法的 #[global_allocator] 实现。

功能特性

  • 提供 #[global_allocator] 实现
  • 使用 buddy 算法进行内存分配
  • 支持 no_std 环境

设计说明

内核不必区分虚存分配和物理页分配的条件是虚地址空间覆盖物理地址空间,换句话说,内核能直接访问到所有物理内存而无需执行修改页表之类其他操作。

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Commit count: 242

cargo fmt