← Kernel InternalsKERNEL INTERNALS 4.2

Kernel Memory

Not started yet — kmalloc/vmalloc and the GFP flags that decide whether an allocation can sleep, then the accessors that bridge kernel, hardware, and user memory. 10 bytes across 2 chapters.

Planned chapters

  • A — Allocation. kmalloc/kfree, kzalloc, vmalloc (and kmalloc vs. vmalloc), the GFP_KERNEL vs. GFP_ATOMIC distinction, the slab allocator at a concept level, and why the kernel stack is tiny.
  • B — Kernel, Hardware, and User Memory. ioremap plus readl/writel for mapping device registers, copy_to_user/copy_from_user and why a user pointer can never be dereferenced directly, and physical vs. virtual addressing in the kernel.

Not yet catalogued — check back once this topic is underway.

Notes from readers

Comments — via GitHub