From 8b7216aaf2dacad7ce67d734d07b047fed8ec01e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 29 Dec 2024 09:57:48 +0100 Subject: IMPL: NeFS: Add file lock feature and validation for it. - It is added to hide files from indexing. - And will be used to hide system files. IMPL: Swap: Add SwapDiskDelegate class, will also work on a swap packet structure. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/KernelKit/LPC.h | 1 + dev/Kernel/KernelKit/Timer.h | 1 - dev/Kernel/KernelKit/UserProcessScheduler.h | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'dev/Kernel/KernelKit') diff --git a/dev/Kernel/KernelKit/LPC.h b/dev/Kernel/KernelKit/LPC.h index 6596d77f..c73c9da7 100644 --- a/dev/Kernel/KernelKit/LPC.h +++ b/dev/Kernel/KernelKit/LPC.h @@ -57,6 +57,7 @@ namespace Kernel inline constexpr HError kErrorInvalidCreds = 61; inline constexpr HError kErrorCDTrayBroken = 62; inline constexpr HError kErrorUnrecoverableDisk = 63; + inline constexpr HError kErrorFileLocked = 64; inline constexpr HError kErrorUnimplemented = 0; /// @brief Raises a bug check stop code. diff --git a/dev/Kernel/KernelKit/Timer.h b/dev/Kernel/KernelKit/Timer.h index b95dc9ca..59c21d40 100644 --- a/dev/Kernel/KernelKit/Timer.h +++ b/dev/Kernel/KernelKit/Timer.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include namespace Kernel diff --git a/dev/Kernel/KernelKit/UserProcessScheduler.h b/dev/Kernel/KernelKit/UserProcessScheduler.h index 73780dc3..b79985dd 100644 --- a/dev/Kernel/KernelKit/UserProcessScheduler.h +++ b/dev/Kernel/KernelKit/UserProcessScheduler.h @@ -7,7 +7,6 @@ #ifndef INC_PROCESS_SCHEDULER_H #define INC_PROCESS_SCHEDULER_H -#include "NewKit/Defines.h" #include #include #include @@ -155,14 +154,14 @@ namespace Kernel ZKA_COPY_DEFAULT(UserProcess); public: - Char Name[kProcessNameLen] = {"Process (Unnamed)"}; + Char Name[kProcessNameLen] = {"Process (Unnamed, No Subsystem)"}; ProcessSubsystem SubSystem{ProcessSubsystem::kProcessSubsystemInvalid}; User* Owner{nullptr}; HAL::StackFramePtr StackFrame{nullptr}; AffinityKind Affinity{AffinityKind::kStandard}; ProcessStatusKind Status{ProcessStatusKind::kFinished}; UInt8* StackReserve{nullptr}; - UserProcessImage Image; + UserProcessImage Image{}; SizeT StackSize{kSchedMaxStackSz}; IDLLObject* DylibDelegate{nullptr}; SizeT MemoryCursor{0UL}; -- cgit v1.2.3