|
contur2
|
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel simulator. More...
#include <cstdint>

Go to the source code of this file.
Namespaces | |
| namespace | contur |
Typedefs | |
| using | contur::ProcessId = std::uint32_t |
| Unique identifier for a process. | |
| using | contur::MemoryAddress = std::uint32_t |
| Represents a memory address (physical or virtual). | |
| using | contur::Tick = std::uint64_t |
| Simulation clock tick counter. | |
| using | contur::RegisterValue = std::int32_t |
| Value stored in a CPU register. | |
| using | contur::DeviceId = std::uint16_t |
| Unique identifier for an I/O device. | |
| using | contur::SubscriptionId = std::uint64_t |
| Unique identifier for an event subscription. | |
| using | contur::ResourceId = std::uint32_t |
| Unique identifier for a synchronization resource (mutex, semaphore, etc.). | |
| using | contur::InodeId = std::uint32_t |
| Unique identifier for a filesystem inode. | |
| using | contur::FrameId = std::uint32_t |
| Frame number in physical memory. | |
Enumerations | |
| enum class | contur::InodeType : std::uint8_t { contur::File , contur::Directory } |
| Type of filesystem node. More... | |
Variables | |
| constexpr ProcessId | contur::INVALID_PID = 0 |
| Sentinel value indicating an invalid/unassigned process ID. | |
| constexpr MemoryAddress | contur::NULL_ADDRESS = 0xFFFFFFFF |
| Sentinel value indicating an invalid/null memory address. | |
| constexpr FrameId | contur::INVALID_FRAME = 0xFFFFFFFF |
| Sentinel value indicating an invalid frame. | |
| constexpr InodeId | contur::INVALID_INODE_ID = 0 |
| Sentinel value indicating an invalid inode identifier. | |
| constexpr std::uint8_t | contur::REGISTER_COUNT = 16 |
| Maximum number of CPU registers. | |
| constexpr Tick | contur::DEFAULT_TIME_SLICE = 4 |
| Default time slice for Round Robin scheduling (in ticks). | |
| constexpr ProcessId | contur::MAX_PROCESSES = 1024 |
| Maximum number of processes the kernel can manage. | |
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel simulator.
Definition in file types.h.