My Project
|
#include <vspace.h>
Public Member Functions | |
VSeg | segment (vaddr_t vaddr) |
size_t | segment_no (vaddr_t vaddr) |
vaddr_t | vaddr (size_t segno, segaddr_t addr) |
segaddr_t | segaddr (vaddr_t vaddr) |
Block * | block_ptr (vaddr_t vaddr) |
void | ensure_is_mapped (vaddr_t vaddr) |
void * | to_ptr (vaddr_t vaddr) |
size_t | filesize () |
Status | init (int fd) |
Status | init () |
Status | init (const char *path) |
void | deinit () |
void * | mmap_segment (int seg) |
void | add_segment () |
Data Fields | |
MetaPage * | metapage |
int | fd |
std::FILE * | file_handle |
int | current_process |
vaddr_t * | freelist |
VSeg | segments [MAX_SEGMENTS] |
ProcessChannel | channels [MAX_PROCESS] |
Static Public Attributes | |
static VMem | vmem_global |
void vspace::internals::VMem::add_segment | ( | ) |
void vspace::internals::VMem::deinit | ( | ) |
Definition at line 634 of file vspace.cc.
|
inline |
size_t vspace::internals::VMem::filesize | ( | ) |
Status vspace::internals::VMem::init | ( | ) |
Definition at line 612 of file vspace.cc.
Status vspace::internals::VMem::init | ( | int | fd | ) |
Definition at line 589 of file vspace.cc.
void * vspace::internals::VMem::mmap_segment | ( | int | seg | ) |
Definition at line 656 of file vspace.cc.
|
inline |
|
inline |
ProcessChannel vspace::internals::VMem::channels[MAX_PROCESS] |
VSeg vspace::internals::VMem::segments[MAX_SEGMENTS] |