summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-03 13:27:49 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-03 13:27:49 +0100
commit34758487e7630244dcec71ebf3995675ac2d1c27 (patch)
tree718650189bf3fccdd76b0840017af1fd2f03f652
parent9c07b4640a226f8070d4de0f8cd8f119d7754aa8 (diff)
feat: LaTeX: update technical papers.
feat: CPS: Assign image to nullptr in PROCESS_IMAGE container. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--dev/kernel/KernelKit/CoreProcessScheduler.h11
-rw-r--r--docs/tex/NOTICE.md5
-rw-r--r--docs/tex/binary_mutex.tex2
-rw-r--r--docs/tex/coreprocessscheduler.tex13
4 files changed, 15 insertions, 16 deletions
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<T>* Parent {
nullptr
};
+
struct PROCESS_FILE_TREE<T>* Child {
nullptr
};
@@ -97,6 +98,7 @@ struct PROCESS_FILE_TREE {
struct PROCESS_FILE_TREE<T>* Prev {
nullptr
};
+
struct PROCESS_FILE_TREE<T>* 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}