地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

mm_struct

mm_struct構造体
include/linux/mm_types.h
 222:  struct mm_struct {
 223:          struct vm_area_struct * mmap;           /* list of VMAs */
 224:          struct rb_root mm_rb;
 225:          struct vm_area_struct * mmap_cache;     /* last find_vma result */
...
 236:          pgd_t * pgd;
 237:          atomic_t mm_users;                      /* How many users with user space? */
 238:          atomic_t mm_count;                      /* How many references to "struct mm_struct" (users count as 1) */
 239:          int map_count;                          /* number of VMAs */
...
 243:          struct list_head mmlist;                /* List of maybe swapped mm's.  These are globally strung
 244:                                                   * together off init_mm.mmlist, and are protected
 245:                                                   * by mmlist_lock
 246:                                                   */
...
 254:          unsigned long start_code, end_code, start_data, end_data;
 255:          unsigned long start_brk, brk, start_stack;
 256:          unsigned long arg_start, arg_end, env_start, env_end;
...
 289: };