From 34758487e7630244dcec71ebf3995675ac2d1c27 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 3 Aug 2025 13:27:49 +0100 Subject: feat: LaTeX: update technical papers. feat: CPS: Assign image to nullptr in PROCESS_IMAGE container. Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/CoreProcessScheduler.h | 11 ++++++----- docs/tex/NOTICE.md | 5 +++++ docs/tex/binary_mutex.tex | 2 +- docs/tex/coreprocessscheduler.tex | 13 +++---------- 4 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 docs/tex/NOTICE.md diff --git a/dev/kernel/KernelKit/CoreProcessScheduler.h b/dev/kernel/KernelKit/CoreProcessScheduler.h index 170244eb..b92d7393 100644 --- a/dev/kernel/KernelKit/CoreProcessScheduler.h +++ b/dev/kernel/KernelKit/CoreProcessScheduler.h @@ -90,6 +90,7 @@ struct PROCESS_FILE_TREE { struct PROCESS_FILE_TREE* Parent { nullptr }; + struct PROCESS_FILE_TREE* Child { nullptr }; @@ -97,6 +98,7 @@ struct PROCESS_FILE_TREE { struct PROCESS_FILE_TREE* Prev { nullptr }; + struct PROCESS_FILE_TREE* Next { nullptr }; @@ -115,8 +117,6 @@ enum class ProcessSubsystem : Int32 { kProcessSubsystemCount = 4, }; -typedef UInt64 PTime; - /***********************************************************************************/ //! @brief Local Process identifier. /***********************************************************************************/ @@ -179,7 +179,8 @@ inline bool operator>=(AffinityKind lhs, AffinityKind rhs) { return lhs_int >= rhs_int; } -using ProcessTime = UInt64; +using PTime = UInt64; +using ProcessTime = PTime; using PID = Int64; /***********************************************************************************/ @@ -209,8 +210,8 @@ struct PROCESS_IMAGE final { friend class UserProcessScheduler; - ImagePtr fCode; - ImagePtr fBlob; + ImagePtr fCode{}; + ImagePtr fBlob{}; public: Bool HasCode() const { return this->fCode != nullptr; } diff --git a/docs/tex/NOTICE.md b/docs/tex/NOTICE.md new file mode 100644 index 00000000..5d6eb03f --- /dev/null +++ b/docs/tex/NOTICE.md @@ -0,0 +1,5 @@ +# Notice for LaTeX documents. + +## Recommended Tool + +`pdflatex` is recommended for this matter, although you are free to use other tools. diff --git a/docs/tex/binary_mutex.tex b/docs/tex/binary_mutex.tex index 4e61eb65..cc5a7d3c 100644 --- a/docs/tex/binary_mutex.tex +++ b/docs/tex/binary_mutex.tex @@ -1,7 +1,7 @@ \documentclass{article} \usepackage{graphicx} % Required for inserting images -\title{BinaryMutex} +\title{BinaryMutex: Technical Documentation} \author{Amlal El Mahrouss} \date{\today} diff --git a/docs/tex/coreprocessscheduler.tex b/docs/tex/coreprocessscheduler.tex index 60f2b8cd..dd3594b1 100644 --- a/docs/tex/coreprocessscheduler.tex +++ b/docs/tex/coreprocessscheduler.tex @@ -2,7 +2,7 @@ \usepackage{graphicx} % Required for inserting images \usepackage{hyperref} -\title{CoreProcessScheduler} +\title{CoreProcessScheduler: Technical Documentation} \author{Amlal El Mahrouss} \date{\today} @@ -70,7 +70,7 @@ class UserProcessTeam final { {The process image container is a design pattern made to contain process data and metadata, its purpose comes from the lack of mainstream operating systems of such ability to hold metadata.} -\newline{} +\newline {This approach helps separate concerns and give modularity to the system, as the image and process structure are not mixed together.} @@ -123,17 +123,10 @@ struct PROCESS_IMAGE final { \section{References} -{Here are the reference material on this paper:} +{Here are the reference mentioned on this paper:} {NeKernel}: \href{https://github.com/nekernel-org/nekernel}{NeKernel} {CoreProcessScheduler}: \href{https://github.com/nekernel-org/nekernel/blob/dev/dev/kernel/KernelKit/CoreProcessScheduler.h}{CoreProcessScheduler} -\section{Hyperlinks} - -{NeKernel.org}: \href{https://nekernel.org}{NeKernel.org} -\newline -\newline -{SNU Systems}: \href{https://snu.systems}{SNU.Systems} - \end{document} -- cgit v1.2.3