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

Segment_header Class Reference

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

#include <segment.h>

List of all members.

Public Member Functions

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


Detailed Description

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


Member Function Documentation

void* Segment_header::get_page_address unsigned  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  page_index,
void *  page_address
[inline]
 

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


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

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