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

blockmap.h

Go to the documentation of this file.
00001 // See the end of this file for license information.
00002 
00003 #ifndef TORSION_BLOCKMAP_H
00004 #define TORSION_BLOCKMAP_H
00005 
00006 #include "addrmap.h"
00007 
00010 
00018 class Block_map : public Address_map {
00019 public:
00022   void
00023   set_block_number(void* virtual_page, unsigned int block_number);
00024 
00026   unsigned int
00027   get_block_number(void* virtual_page);
00028 };
00029 
00030 // Block map directory entry for block map table on disk:
00031 // 
00032 //  31                                                            0
00033 // +---------------------------------------------------------------+
00034 // |                                                             | |
00035 // |             disk block index number (<< 1) 31..1            |P|
00036 // |                                                             | |
00037 // +---------------------------------------------------------------+
00038 //
00039 //   P : present = 0
00040 
00041 #endif
00042 
00043 /* Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman
00044  *
00045  * This program is free software; you can redistribute it and/or modify it
00046  * under the terms of the GNU General Public License as published by the
00047  * Free Software Foundation; either version 2 of the License, or (at your
00048  * option) any later version.
00049  * 
00050  * This program is distributed in the hope that it will be useful, but
00051  * WITHOUT ANY WARRANTY; without even the implied warranty of
00052  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00053  * General Public License for more details (in the COPYING file).
00054  * 
00055  * You should have received a copy of the GNU General Public License along
00056  * with this program; if not, write to the Free Software Foundation, Inc.,
00057  * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00058  */

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