|
StuBS
|
#include <fs/ramdisk.h>
Public Member Functions | |
| Ramdisk (void *buf, size_t size) | |
| Block | fix (uint64_t block_number) |
| void | unfix (Block *block) |
| int | sync () |
| int | sync (Block *block) |
Public Member Functions inherited from BlockDevice | |
| BlockDevice () | |
| bool | set_blocksize (unsigned int blocksize) |
| template<typename T > | |
| T | divide_by_blocksize (T val) const |
| template<typename T > | |
| T | modulo_blocksize (T val) const |
Private Attributes | |
| char * | buf |
| size_t | size |
Additional Inherited Members | |
Public Attributes inherited from BlockDevice | |
| unsigned int | blocksize |
| unsigned int | blocksize_bits |
|
inline |
Implements BlockDevice.
|
virtual |
Implements BlockDevice.
|
virtual |
Implements BlockDevice.
|
virtual |
Implements BlockDevice.
|
private |
|
private |