Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Segment_header Class Reference

The first disk block of a segment is a segment header containing virtual addresses for all the pages stored within the segment. More...

#include <segment.h>

List of all members.

Public Methods

void * get_page_address (unsigned int page_index)
void set_page_address (unsigned int page_index, void *page_address)

Protected Attributes

void ** page_addresses


Detailed Description

The first disk block of a segment is a segment header containing virtual addresses for all the pages stored within the segment.


Member Function Documentation

void* Segment_header::get_page_address unsigned int    page_index [inline]
 

Given a page index into this segment, return the corresponding virtual address of that page. E.g., passing in a page_index of 5 will return the virtual address of the 5th page stored in this segment.

void Segment_header::set_page_address unsigned int    page_index,
void *    page_address
[inline]
 

Given a page index into this segment, set the virtual address of the page.


Member Data Documentation

void** Segment_header::page_addresses [protected]
 

array of addresses for pages in this segment.


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

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