osdev-memory-management
CommunityBuild robust kernel memory allocators
Software Engineering#kernel#memory-allocation#frame-allocator#slab-allocator#buddy-allocator#bitmap-allocator#kernel-heap
AuthorMaelwalser
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a complete reference and practical guidance for implementing physical and virtual memory allocation in OS kernels, eliminating common pitfalls like allocating reserved regions, fragmentation, and incorrect alignment.
Core Features & Use Cases
- Memory map parsing: how to parse Multiboot and UEFI memory maps and mark usable versus reserved regions.
- Physical frame allocators: implementations and trade-offs for bitmap, stack, and buddy allocators with hinting and region marking strategies.
- Kernel heap designs: slab allocator internals, size-class bins for kmalloc/kfree, and coalescing strategies for general-purpose heaps.
- Use Case: implement a 4KB-aligned physical frame allocator, add a slab-backed cache for frequent kernel objects, and provide a kmalloc/kfree front-end for variable-size kernel allocations.
Quick Start
Use the osdev-memory-management skill to design a bitmap-based physical frame allocator and a slab-backed kernel heap for a hobby kernel.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: osdev-memory-management Download link: https://github.com/Maelwalser/claude-config/archive/main.zip#osdev-memory-management Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.