summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 21:36:40 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 21:36:40 +0100
commit0f8285983883048dbf19734c588473725c66f367 (patch)
treed9ccd3b55cc31b1a9e1178320bf602936742a6ff /dev/Kernel/KernelKit
parent0ea1827a392411eafae2ee9ebbfddbae92958f73 (diff)
Add NS.h file for CoreBoot, and open command.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit')
-rw-r--r--dev/Kernel/KernelKit/User.h11
-rw-r--r--dev/Kernel/KernelKit/UserProcessScheduler.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/dev/Kernel/KernelKit/User.h b/dev/Kernel/KernelKit/User.h
index 7cf26e1e..e629286f 100644
--- a/dev/Kernel/KernelKit/User.h
+++ b/dev/Kernel/KernelKit/User.h
@@ -12,7 +12,8 @@
#include <NewKit/KString.h>
#include <NewKit/Defines.h>
-///! We got the Super, standard user (%s format) and guest user, all are used to make authorization operations on the OS.
+///! We got the Super, standard user (%s format) and guest user,
+///! all are used to make authorization operations on the OS.
#define kSuperUser "OS AUTHORITY/SUPER/%s"
#define kGuestUser "OS AUTHORITY/GUEST/%s"
#define kFmtUser "OS AUTHORITY/STD/%s"
@@ -35,7 +36,7 @@ namespace Kernel
kRingCount = 3,
};
- typedef Char* usr_public_key_kind;
+ typedef Char* UserPublicKey;
/// @brief User class.
class User final
@@ -69,16 +70,16 @@ namespace Kernel
Bool IsSuperUser() noexcept;
/// @brief Saves a password from the public key.
- Bool Save(const usr_public_key_kind password) noexcept;
+ Bool Save(const UserPublicKey password) noexcept;
/// @brief Checks if a password matches the **password**.
/// @param password the password to check.
- Bool Matches(const usr_public_key_kind password) noexcept;
+ Bool Matches(const UserPublicKey password) noexcept;
private:
UserRingKind mUserRing{UserRingKind::kRingStdUser};
Char mUserName[kMaxUserNameLen] = {0};
- Char mUserToken[kMaxUserTokenLen] = {0};
+ Char mUserKey[kMaxUserTokenLen] = {0};
};
} // namespace Kernel
diff --git a/dev/Kernel/KernelKit/UserProcessScheduler.h b/dev/Kernel/KernelKit/UserProcessScheduler.h
index 8212fdc2..79b06f7c 100644
--- a/dev/Kernel/KernelKit/UserProcessScheduler.h
+++ b/dev/Kernel/KernelKit/UserProcessScheduler.h
@@ -272,6 +272,8 @@ namespace Kernel
ProcessID mProcessCount{0};
};
+ typedef Array<UserThread, kSchedProcessLimitPerTeam> UserThreadArray;
+
using UserProcessRef = UserThread&;
/// @brief Process scheduler class.