summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/SystemKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/Kernel/SystemKit
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/SystemKit')
-rw-r--r--dev/Kernel/SystemKit/SwapDisk.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/dev/Kernel/SystemKit/SwapDisk.h b/dev/Kernel/SystemKit/SwapDisk.h
deleted file mode 100644
index 11cc6332..00000000
--- a/dev/Kernel/SystemKit/SwapDisk.h
+++ /dev/null
@@ -1,46 +0,0 @@
-
-/* -------------------------------------------
-
- Copyright (C) 2024-2025 Amlal EL Mahrouss Labs, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <NewKit/Defines.h>
-#include <CompilerKit/CompilerKit.h>
-
-#define kSwapBlockMaxSize (mib_cast(16))
-#define kSwapPageFile "/boot/pagefile.sys"
-
-/// @file SwapDisk.h
-/// @brief Virtual memory swap disk.
-
-namespace NeOS
-{
- struct SWAP_DISK_HEADER;
-
- /// @brief This class is a disk swap delegate for any data. available as a syscall too.
- class SwapDisk final
- {
- public:
- explicit SwapDisk() = default;
- ~SwapDisk() = default;
-
- NE_COPY_DEFAULT(SwapDisk);
-
- BOOL Write(const Char* fork_name, const SizeT fork_name_len, SWAP_DISK_HEADER* data, const SizeT data_len);
- SWAP_DISK_HEADER* Read(const Char* fork_name, const SizeT fork_name_len, const SizeT data_len);
- };
-
- typedef struct SWAP_DISK_HEADER
- {
- UInt32 fMagic;
- SizeT fHeaderSz;
- UInt64 fTeamID;
- UInt64 fProcessID;
- UInt64 fVirtualAddress;
- SizeT fBlobSz;
- Char fBlob[];
- } PACKED SWAP_DISK_HEADER;
-} // namespace NeOS