|
The Pedigree Project 0.1
|
Collaboration diagram for SwapStore:Classes | |
| struct | State |
Public Member Functions | |
| bool | prepareAtBoot () |
| SwapStatus | activate (uint32_t endpoint) |
| SwapStatus | finishDeactivate (uint32_t endpoint) |
| SwapStatus | writePage (physical_uintptr_t physical, SwapReference &result) |
| SwapStatus | readPage (SwapReference reference, physical_uintptr_t physical) |
| bool | zeroPage (physical_uintptr_t physical) |
| bool | retain (SwapReference reference) |
| void | release (SwapReference &reference) |
| SwapSnapshot | snapshot () const |
| uint32_t | endpointId () const |
Static Public Member Functions | |
| static SwapStore & | instance () |
| static SwapStatus | validateHeader (const void *page, uint64_t deviceBytes, size_t &pages) |
Static Public Attributes | |
| static constexpr size_t | MaximumPages = 4096 |
Private Attributes | |
| State * | m_State = nullptr |
Definition at line 31 of file SwapStore.h.
| SwapStatus SwapStore::activate | ( | uint32_t | endpoint | ) |
Definition at line 32 of file SwapStore.cc.
| uint32_t SwapStore::endpointId | ( | ) | const |
Definition at line 133 of file SwapStore.cc.
| SwapStatus SwapStore::finishDeactivate | ( | uint32_t | endpoint | ) |
Definition at line 64 of file SwapStore.cc.
|
static |
Definition at line 19 of file SwapStore.cc.
| bool SwapStore::prepareAtBoot | ( | ) |
Definition at line 23 of file SwapStore.cc.
| SwapStatus SwapStore::readPage | ( | SwapReference | reference, |
| physical_uintptr_t | physical | ||
| ) |
Definition at line 98 of file SwapStore.cc.
| void SwapStore::release | ( | SwapReference & | reference | ) |
Definition at line 118 of file SwapStore.cc.
| bool SwapStore::retain | ( | SwapReference | reference | ) |
Definition at line 109 of file SwapStore.cc.
| SwapSnapshot SwapStore::snapshot | ( | ) | const |
Definition at line 128 of file SwapStore.cc.
|
static |
Definition at line 7 of file SwapHeader.cc.
| SwapStatus SwapStore::writePage | ( | physical_uintptr_t | physical, |
| SwapReference & | result | ||
| ) |
Definition at line 75 of file SwapStore.cc.
| bool SwapStore::zeroPage | ( | physical_uintptr_t | physical | ) |
Definition at line 137 of file SwapStore.cc.
|
private |
Definition at line 50 of file SwapStore.h.
|
staticconstexpr |
Definition at line 33 of file SwapStore.h.