内核常用对象/结构收集

来源:互联网 发布:机器人离线编程培训班 编辑:程序博客网 时间:2024/05/19 11:49

好记性不如烂笔头,碰到有意思的,常用的,等等都在此留一笔 吐舌头


Objects:

-------------------------------------------------------------------------------------------------------------------

 struct mm_struct  *mmap       进程虚拟地址映射

struct page * mem_map       物理页管理



<linux/mm.h>

/*
 * Linux kernel virtual memory manager primitives.
 * The idea being to have a "virtual" mm in the same way
 * we have a virtual fs - giving a cleaner interface to the
 * mm details, and allowing different kinds of memory mappings
 * (from shared memory to executable loading to arbitrary
 * mmap() functions).
 */

extern struct kmem_cache *vm_area_cachep;

-------------------------------------------------------------------------------------------------------------------



Structs:


-------------------------------------------------------------------------------------------------------------------

struct page                    物理内存页

struct vm_area_struct  进程内存区域

struct mm_struct           进程内存空间

struct kmem_cache

-------------------------------------------------------------------------------------------------------------------

0 0
原创粉丝点击