summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-25 08:52:37 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-25 08:52:37 +0100
commit85549734440767cda6e7fb0d6984437b3948bcbe (patch)
tree42288c14c83809ae544fdf6c829734cf1221222d /dev
parent4fb262ba77b03886e980eb007e75fad016c25ba1 (diff)
ADD: Scheduler Interrupt API.
REMOVE: TeamScheduler.h Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/Kernel/SystemKit/TeamScheduler.h20
-rw-r--r--dev/LibSCI/SCI.h13
2 files changed, 13 insertions, 20 deletions
diff --git a/dev/Kernel/SystemKit/TeamScheduler.h b/dev/Kernel/SystemKit/TeamScheduler.h
deleted file mode 100644
index 92d3b5d6..00000000
--- a/dev/Kernel/SystemKit/TeamScheduler.h
+++ /dev/null
@@ -1,20 +0,0 @@
-
-/* -------------------------------------------
-
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <NewKit/Defines.h>
-
-/// @file TeamScheduler.h
-/// @brief This file takes care of creating processes/threads from a subsystem context.
-
-namespace Kernel
-{
- class UserSubsystem;
- class UserEnvVar;
- class UserEnv;
-} // namespace Kernel \ No newline at end of file
diff --git a/dev/LibSCI/SCI.h b/dev/LibSCI/SCI.h
index 0fca4913..433a6d28 100644
--- a/dev/LibSCI/SCI.h
+++ b/dev/LibSCI/SCI.h
@@ -290,4 +290,17 @@ IMPORT_C SInt32 ConRelease(IOObject);
IMPORT_C IOObject ConGet(const Char* path);
+// ------------------------------------------------------------------------------------------ //
+// Scheduler Interrupts API.
+// ------------------------------------------------------------------------------------------ //
+
+typedef SInt32 AffinityKind;
+typedef UInt64 PID;
+
+IMPORT_C SInt32 SchedAffinity(PID, SInt32 req, AffinityKind* local);
+
+IMPORT_C SInt32 SchedTrace(PID, SInt32 req, VoidPtr address, VoidPtr data);
+
+IMPORT_C SInt32 SchedKill(PID, SInt32 req);
+
#endif // ifndef SCIKIT_FOUNDATION_H