SimpleKernel 1.17.0
Loading...
Searching...
No Matches
kernel_config.hpp File Reference
#include <cstddef>
#include "project_config.h"
Include dependency graph for kernel_config.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kernel
 
namespace  kernel::config
 

Variables

constexpr size_t kernel::config::kMaxTasks = 128
 全局最大任务数(task_table_ 容量)
 
constexpr size_t kernel::config::kMaxTasksBuckets = 256
 task_table_ 桶数(建议 = 2 × kMaxTasks)
 
constexpr size_t kernel::config::kMaxSleepingTasks = 64
 每个 CPU 的最大睡眠任务数(sleeping_tasks 容量)
 
constexpr size_t kernel::config::kMaxBlockedGroups = 32
 阻塞队列:最大资源组数(blocked_tasks 的 map 容量)
 
constexpr size_t kernel::config::kMaxBlockedGroupsBuckets = 64
 阻塞队列:map 桶数
 
constexpr size_t kernel::config::kMaxBlockedPerGroup = 16
 阻塞队列:每组最大阻塞任务数(etl::list 容量)
 
constexpr size_t kernel::config::kMaxReadyTasks = 64
 调度器就绪队列容量(FIFO / RR / CFS)
 
constexpr size_t kernel::config::kMaxInterruptThreads = 32
 最大中断线程数
 
constexpr size_t kernel::config::kMaxInterruptThreadsBuckets = 64
 中断线程 map 桶数
 
constexpr size_t kernel::config::kTickObservers = 8
 最大 tick 观察者数
 
constexpr size_t kernel::config::kPanicObservers = 4
 最大 panic 观察者数