Linux核心数据结构--mem_map_t

用来保存每个物理页面的信息。

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

struct page *prev;

struct inode *inode;

unsigned long offset;

struct page *next_hash;

atomic_t count;

unsigned flags; [/b] [i]/* atomic flags, some possibly

updated asynchronously */[/i]
[b]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; [/b] [i]/* page->map_nr == page - mem_map */[/i]
[b]} mem_map_t;[/b]

你可能感兴趣的:(操作系统)