#include <blockdev.h>
Inherited by Floppy.
Inheritance diagram for Block_device:

Public Member Functions | |
| virtual void | init ()=0 |
| virtual void | deinit ()=0 |
| bool | read_page (unsigned block, void *data) |
| bool | write_page (unsigned block, void *data) |
| virtual bool | read_block (unsigned block, void *data)=0 |
| virtual bool | write_block (unsigned block, void *data)=0 |
Public Attributes | |
| Size | block_size |
| Size | total_blocks |
| Size | blocks_per_page |
|
|
Deinitialize the device, free data structures, etc.
Implemented in Floppy. |
|
|
Initialize the device, allocate any necessary data structures, etc.
Implemented in Floppy. |
|
||||||||||||
|
Read a block of data from disk into the provided buffer.
Implemented in Floppy. |
|
||||||||||||
|
Read a page of data from disk into the provided buffer, starting at the given block.
|
|
||||||||||||
|
Write a block of data to disk from the provided buffer.
Implemented in Floppy. |
|
||||||||||||
|
Write a page of data to disk from the provided buffer, starting at the given block.
|
|
|
block size in bytes on this device
|
|
|
blocks per page of memory
|
|
|
total blocks on this device
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman