summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-08 04:01:32 -0500
committerGitHub <noreply@github.com>2025-12-08 04:01:32 -0500
commitf78c535aec66e02584e1b02995dc12c9e1bcb64c (patch)
tree8fd8793369c30ddbfb61366407db3d464a95ad6b /src/kernel/KernelKit
parent1a20507a6ecaa084b61d9b9d686d2e186b683e35 (diff)
parente6768dc3b6c7864166211fd6e2f67ff4e5a2cbe5 (diff)
Merge pull request #114 from nekernel-org/new-scripts
chore: use `enum struct` instead of `enum class`.
Diffstat (limited to 'src/kernel/KernelKit')
-rw-r--r--src/kernel/KernelKit/CoreProcessScheduler.h8
-rw-r--r--src/kernel/KernelKit/PCI/DMA.h2
-rw-r--r--src/kernel/KernelKit/PCI/Database.h2
-rw-r--r--src/kernel/KernelKit/PCI/Device.h2
-rw-r--r--src/kernel/KernelKit/UserMgr.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/kernel/KernelKit/CoreProcessScheduler.h b/src/kernel/KernelKit/CoreProcessScheduler.h
index 7a53f94c..da89b112 100644
--- a/src/kernel/KernelKit/CoreProcessScheduler.h
+++ b/src/kernel/KernelKit/CoreProcessScheduler.h
@@ -142,7 +142,7 @@ struct PROCESS_SPECIAL_TREE {
/// @brief Subsystem enum type.
/***********************************************************************************/
-enum class ProcessSubsystem : Int32 {
+enum struct ProcessSubsystem : Int32 {
kProcessSubsystemSecurity = 100,
kProcessSubsystemUser,
kProcessSubsystemService,
@@ -155,7 +155,7 @@ enum class ProcessSubsystem : Int32 {
/***********************************************************************************/
//! @brief Local Process status enum.
/***********************************************************************************/
-enum class ProcessStatusKind : Int32 {
+enum struct ProcessStatusKind : Int32 {
kInvalid = 0,
kStarting = 100,
kRunning,
@@ -168,7 +168,7 @@ enum class ProcessStatusKind : Int32 {
/***********************************************************************************/
//! @brief Affinity is the amount of nano-seconds this process is going to run.
/***********************************************************************************/
-enum class AffinityKind : Int32 {
+enum struct AffinityKind : Int32 {
kInvalid = 0,
kRealTime = 100,
kVeryHigh = 150,
@@ -221,7 +221,7 @@ using ProcessID = Int64;
/***********************************************************************************/
/// @note For User manager, tells where we run the code.
/***********************************************************************************/
-enum class ProcessLevelRing : Int32 {
+enum struct ProcessLevelRing : Int32 {
kRingStdUser = 1,
kRingSuperUser = 2,
kRingGuestUser = 5,
diff --git a/src/kernel/KernelKit/PCI/DMA.h b/src/kernel/KernelKit/PCI/DMA.h
index 0cc642c1..d965a3c9 100644
--- a/src/kernel/KernelKit/PCI/DMA.h
+++ b/src/kernel/KernelKit/PCI/DMA.h
@@ -13,7 +13,7 @@
#include <NeKit/Ref.h>
namespace Kernel {
-enum class DmaKind {
+enum struct DmaKind {
PCI = 10, // Bus mastering is required to be turned on. Basiaclly a request
// control system. 64-Bit access depends on the PAE bit and the device
// (if Double Address Cycle is available)
diff --git a/src/kernel/KernelKit/PCI/Database.h b/src/kernel/KernelKit/PCI/Database.h
index 73013c74..35740fdc 100644
--- a/src/kernel/KernelKit/PCI/Database.h
+++ b/src/kernel/KernelKit/PCI/Database.h
@@ -11,7 +11,7 @@
namespace Kernel {
namespace Types {
// https://wiki.osdev.org/PCI
- enum class PciDeviceKind : UChar {
+ enum struct PciDeviceKind : UChar {
MassStorageController = 0x1,
NetworkController = 0x2,
DisplayController = 0x3,
diff --git a/src/kernel/KernelKit/PCI/Device.h b/src/kernel/KernelKit/PCI/Device.h
index e9c5a683..3e7284de 100644
--- a/src/kernel/KernelKit/PCI/Device.h
+++ b/src/kernel/KernelKit/PCI/Device.h
@@ -10,7 +10,7 @@
#include <NeKit/KernelPanic.h>
namespace Kernel::PCI {
-enum class PciConfigKind : UShort {
+enum struct PciConfigKind : UShort {
ConfigAddress = 0xCF8,
ConfigData = 0xCFC,
CommandReg = 0x0004,
diff --git a/src/kernel/KernelKit/UserMgr.h b/src/kernel/KernelKit/UserMgr.h
index 3f36f240..3b48f686 100644
--- a/src/kernel/KernelKit/UserMgr.h
+++ b/src/kernel/KernelKit/UserMgr.h
@@ -34,7 +34,7 @@
namespace Kernel {
class User;
-enum class UserRingKind : Int32 {
+enum struct UserRingKind : Int32 {
kRingInvalid = 0,
kRingStdUser = 444,
kRingSuperUser = 666,