第4章内存管理(lab2).pptVIP

  • 9
  • 0
  • 约6.82千字
  • 约 28页
  • 2017-05-20 发布于四川
  • 举报
第四章 内存管理 (lab2) 提纲 页面管理 页表管理 页面管理 页面管理链表的结构 现在我们来讨论用于页面管理的双向链表结构。首先,我们来看一下构成这个链表的结点的情况。该结点的结构是在memlayout.h中规定的: typedef LIST_ENTRY(Page) Page_LIST_entry_t; struct Page { Page_LIST_entry_t pp_link; /* free list link */ // pp_ref is the count of pointers (usually in page table entries) // to this page, for pages allocated using page_alloc. // Pages allocated at boot time using pmap.cs // boot_alloc do not have valid reference count fields. uint16_t pp_ref; }; 而LIST_ENTRY的定义则在queue.h中: #define LIST_ENTRY(type) struct { struct type *le_next; /* next element */ \ struct type

文档评论(0)

1亿VIP精品文档

相关文档