Virtual memory interface to swap memory chunks onto disk.
More...
#include <DiskSwap.h>
Virtual memory interface to swap memory chunks onto disk.
- Note
- The class only supports the NeFS as of right now, as it is using forks to write data into disk.
◆ DiskSwapInterface()
Kernel::DiskSwapInterface::DiskSwapInterface |
( |
| ) |
|
|
explicitdefault |
◆ ~DiskSwapInterface()
Kernel::DiskSwapInterface::~DiskSwapInterface |
( |
| ) |
|
|
default |
◆ Read()
Read memory chunk from disk.
- Parameters
-
name | The swap name to recognize this memory region. |
name_len | length of fork name. |
data | the data packet length. |
- Returns
- Whether the swap was fetched to disk, or not.
- Parameters
-
fork_name | The swap name to recognize this memory region. |
fork_name_len | length of fork name. |
data | the data packet length. |
- Returns
- Whether the swap was fetched to disk, or not.
◆ Write()
Write memory chunk onto disk.
- Parameters
-
name | The swap name to recognize this memory region. |
name_len | length of fork name. |
data | the data packet. |
- Returns
- Whether the swap was written to disk, or not.
- Parameters
-
fork_name | The swap name to recognize this memory region. |
fork_name_len | length of fork name. |
data | the data packet. |
- Returns
- Whether the swap was written to disk, or not.
The documentation for this class was generated from the following files: