diff options
Diffstat (limited to 'dev/Kernel/SystemKit/SwapDisk.h')
| -rw-r--r-- | dev/Kernel/SystemKit/SwapDisk.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev/Kernel/SystemKit/SwapDisk.h b/dev/Kernel/SystemKit/SwapDisk.h new file mode 100644 index 00000000..d2db77b6 --- /dev/null +++ b/dev/Kernel/SystemKit/SwapDisk.h @@ -0,0 +1,33 @@ + +/* ------------------------------------------- + + Copyright (C) 2024, Theater Quality Corp, all rights reserved. + +------------------------------------------- */ + +#pragma once + +#include <NewKit/Defines.h> +#include <CompilerKit/CompilerKit.h> + +#define kSwapMgrBlockMaxSize (mib_cast(16)) +#define kSwapMgrPageFile "/System/pagefile.sys" + +/// @file SwapDisk.h +/// @brief Virtual memory swap disk. + +namespace Kernel +{ + /// @brief This class is a disk swap delegate for any data. available as a syscall too. + class SwapDiskDelegate final + { + public: + explicit SwapDiskDelegate() = default; + ~SwapDiskDelegate() = default; + + ZKA_COPY_DEFAULT(SwapDiskDelegate); + + BOOL Write(const Char* fork_name, const SizeT fork_name_len, VoidPtr data, const SizeT data_len); + VoidPtr Read(const Char* fork_name, const SizeT fork_name_len, const SizeT data_len); + }; +} // namespace Kernel
\ No newline at end of file |
