#include <blockmap.h>
Inherits Address_map.
Inheritance diagram for Block_map:
Public Methods | |
void | set_block_number (void *virtual_page, unsigned int block_number) |
unsigned int | get_block_number (void *virtual_page) |
The block directory entry of a non-present (on-disk) block table is the block number of the table on disk and various flags. When the block directory is written to disk, it is written so as to contain only table block numbers (whether the correponding tables are present or not), primarily so that they can be read in on the next boot.
|
Return the block number on disk for the given virtual page.
|
|
Create a mapping for the given virtual page to its corresponding block number on disk. Mark the page as present.
|
Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman