Skip to content

Kernel Memory API Reference

This section collects the kernel memory allocation APIs and allocator internals used throughout the labs.

Unlike userspace memory allocation, Linux kernel memory allocation is built on multiple layers. The API reference explains both the programming interfaces and the underlying allocator implementations.

References

Reference Purpose
Kernel Memory Allocation Overview of kernel dynamic memory allocation APIs, including kmalloc(), kzalloc(), kcalloc(), and kfree().
Page Allocator Understand the Buddy Allocator, page allocation, struct page, allocation order, page split, and page merge.
SLUB Allocator Understand kmem_cache, slabs, bitmap management, object allocation, object reuse, and integration with the Buddy Allocator.