summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/CoreProcessScheduler.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-19 16:11:51 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-19 16:11:51 +0100
commit1e12163836e649da0d67fc8f17bc9a415554efe4 (patch)
tree9c0a3aa0ff6c6cc79443f3218793233e59a87aaf /dev/kernel/KernelKit/CoreProcessScheduler.h
parent3d1932fb68aa20b87429b55355bb051f817070ce (diff)
feat: wip: new tree kind 'kSpecial' and refactor user scheduler code temporary regarding FileTree allocation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/CoreProcessScheduler.h')
-rw-r--r--dev/kernel/KernelKit/CoreProcessScheduler.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/dev/kernel/KernelKit/CoreProcessScheduler.h b/dev/kernel/KernelKit/CoreProcessScheduler.h
index e8ac158e..170244eb 100644
--- a/dev/kernel/KernelKit/CoreProcessScheduler.h
+++ b/dev/kernel/KernelKit/CoreProcessScheduler.h
@@ -19,7 +19,7 @@
#define kSchedTeamCount (256U)
#define kSchedMaxMemoryLimit (gib_cast(128)) /* max physical memory limit */
-#define kSchedMaxStackSz (kib_cast(8)) /* maximum stack size */
+#define kSchedMaxStackSz (kib_cast(8)) /* maximum stack size */
#define kSchedNameLen (128U)
@@ -36,6 +36,9 @@ template <typename T>
struct PROCESS_HEAP_TREE;
template <typename T>
+struct PROCESS_SPECIAL_TREE;
+
+template <typename T>
struct PROCESS_FILE_TREE;
enum {
@@ -47,9 +50,9 @@ enum {
template <typename T>
struct PROCESS_HEAP_TREE {
- static constexpr auto kHeap = true;
- static constexpr auto kFile = false;
- static constexpr auto kSpecial = false;
+ static constexpr auto kHeap = true;
+ static constexpr auto kFile = false;
+ static constexpr auto kSpecial = false;
T Entry{nullptr};
SizeT EntrySize{0UL};
@@ -74,9 +77,9 @@ struct PROCESS_HEAP_TREE {
template <typename T>
struct PROCESS_FILE_TREE {
- static constexpr auto kHeap = false;
- static constexpr auto kFile = true;
- static constexpr auto kSpecial = false;
+ static constexpr auto kHeap = false;
+ static constexpr auto kFile = true;
+ static constexpr auto kSpecial = false;
T Entry{nullptr};
SizeT EntrySize{0UL};