From 85549734440767cda6e7fb0d6984437b3948bcbe Mon Sep 17 00:00:00 2001 From: Amlal Date: Sat, 25 Jan 2025 08:52:37 +0100 Subject: ADD: Scheduler Interrupt API. REMOVE: TeamScheduler.h Signed-off-by: Amlal --- dev/Kernel/SystemKit/TeamScheduler.h | 20 -------------------- dev/LibSCI/SCI.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 dev/Kernel/SystemKit/TeamScheduler.h (limited to 'dev') 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 - -/// @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 -- cgit v1.2.3