Linux核心数据结构--mem_map_t

阅读更多
用来保存每个物理页面的信息。

typedef struct page {
/* these must be first (free area handling) */
struct page        *next;

  struct page        *prev;

  struct inode       *inode;

  unsigned long      offset;

  struct page        *next_hash;

  atomic_t           count;

  unsigned           flags; 
   /* atomic flags, some possibly

                                   updated asynchronously */

  unsigned           dirty:16,

                     age:8;

  struct wait_queue  *wait;

  struct page        *prev_hash;

  struct buffer_head *buffers;

  unsigned long      swap_unlock_entry;

  unsigned long      map_nr;  
/* page->map_nr == page - mem_map */
} mem_map_t;

你可能感兴趣的:(数据结构,Linux)