The Linux Kernel/Memory
Memory: from sys_bkr, sys_mmap2 to RAM
Data structures:
- __kfifo - FIFO or queue
- idr - map UID to pointer
- rb_root - red-black tree
- list_head - double linked list
- klist - list_head extension
- cat /proc/meminfo
- include/linux/sched.h
- mm_struct
- #include <linux/mm.h>
- #include <linux/malloc.h>
- kmalloc, kfree
- #include <linux/vmalloc.h>
- vmalloc, vfree
- #include <asm/io.h>
- ioremap, iounmap
Internal representation
- page at #include <linux/mm.h>
- ULK3 Chapter 2. Memory Addressing
- ULK3 Chapter 8. Memory Management
- ULK3 Chapter 9. Process Address Space
- LDD3:Allocating Memory
- LDD3:Data Types in the Kernel
- http://www.tldp.org/LDP/tlk/mm/memory.html
- http://www.tldp.org/LDP/lki/lki-4.html
- http://www.xml.com/ldd/chapter/book/ch07.html Getting Hold of Memory
- http://www.xml.com/ldd/chapter/book/ch13.html mmap and DMA
- http://www.tldp.org/HOWTO/KernelAnalysis-HOWTO-7.html