Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Page Struct Reference

A Page is not actually a single page, but rather a contiguous range of pages such that the number of pages in the range is a power of two. More...

#include <pagespan.h>

Inherits List_node.

Inheritance diagram for Page:

Inheritance graph
[legend]
Collaboration diagram for Page:

Collaboration graph
[legend]
List of all members.

Public Attributes

unsigned alignment: PAGE_ALIGNMENT
unsigned address: sizeof(unsigned) * 8 - PAGE_ALIGNMENT
void * owner

Detailed Description

A Page is not actually a single page, but rather a contiguous range of pages such that the number of pages in the range is a power of two.

It would probably be a good idea to change all uses of Page to Page_chunk or Page_range or Page_span or something that is a little more clear.


Member Data Documentation

unsigned Page::address
 

page addr, >> by PAGE_ALIGNMENT

unsigned Page::alignment
 

this size = PAGE_SIZE * 2^alignment

void* Page::owner
 

page owner, NULL if unowned


The documentation for this struct was generated from the following file:

Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman