Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Simple-XX/SimpleKernel
/ functions
Functions
1,141 in github.com/Simple-XX/SimpleKernel
⨍
Functions
1,141
◇
Types & classes
206
↓ 1 callers
Function
test_rr_dequeue
tests/system_test/rr_scheduler_test.cpp:130
↓ 1 callers
Function
test_rr_fairness
tests/system_test/rr_scheduler_test.cpp:225
↓ 1 callers
Function
test_rr_hooks
tests/system_test/rr_scheduler_test.cpp:334
↓ 1 callers
Function
test_rr_interleaved_operations
tests/system_test/rr_scheduler_test.cpp:394
↓ 1 callers
Function
test_rr_mixed_operations
tests/system_test/rr_scheduler_test.cpp:260
↓ 1 callers
Function
test_rr_multiple_rounds
tests/system_test/rr_scheduler_test.cpp:306
↓ 1 callers
Function
test_rr_robustness
tests/system_test/rr_scheduler_test.cpp:366
↓ 1 callers
Function
test_rr_round_robin_behavior
tests/system_test/rr_scheduler_test.cpp:64
↓ 1 callers
Function
test_rr_statistics
tests/system_test/rr_scheduler_test.cpp:174
↓ 1 callers
Function
test_rr_time_slice_management
tests/system_test/rr_scheduler_test.cpp:100
↓ 1 callers
Function
toupper
src/libc/sk_ctype.c:47
Method
AbsClass
tests/system_test/ctor_dtor_test.cpp:52
Method
AckInterrupt
src/device/virtio/transport/mmio.hpp:302
Method
AcknowledgeInterrupt
* @brief 确认并清除设备中断 * @see virtio-v1.2#2.3 Notifications */
src/device/virtio/transport/transport.hpp:137
Method
Acpi
@name 构造/析构函数 @{ * @brief 构造函数 * @param rsdp RSDP 地址 */
src/device/acpi/acpi.hpp:26
Method
AllocDesc
* @brief 从空闲链表分配一个描述符 * * 从空闲描述符链表中取出一个描述符,供上层使用。 * 调用者必须填充描述符的 addr、len、flags 和 next 字段。 * * @return 成功返回描述符索引(range: 0 ~ queue_size-1
src/device/virtio/virt_queue/split.hpp:298
Method
AllocRequestSlot
* @brief 从请求槽池中分配一个空闲槽(O(1) 位图算法) * * 使用 __builtin_ctzll 找到 slot_bitmap_ 中最低的 0 位。 * * @return 成功返回槽索引,失败返回错误 */
src/device/virtio/device/blk/virtio_blk.hpp:679
Method
AllocateDirEntries
src/filesystem/ramfs/ramfs.cpp:620
Method
AllocateFatInode
src/filesystem/fatfs/fatfs.cpp:207
Method
AllocateFil
src/filesystem/fatfs/fatfs.cpp:224
Method
AllocateFileData
src/filesystem/ramfs/ramfs.cpp:609
Method
AllocatePid
src/task/task_manager.cpp:165
Function
ArchInit
src/arch/aarch64/arch_main.cpp:48
Function
ArchInitSMP
src/arch/aarch64/arch_main.cpp:65
Method
ArrayObj
tests/unit_test/sk_unique_ptr_test.cpp:244
Method
Balance
src/task/task_manager.cpp:181
Method
BasicInfo
src/arch/riscv64/arch_main.cpp:21
Method
BasicInfo
src/arch/aarch64/arch_main.cpp:20
Method
BasicInfo
src/include/basic_info.hpp:58
Method
BroadcastIpi
src/arch/aarch64/interrupt.cpp:93
Method
CalcDmaSize
* @brief 计算单个 Virtqueue DMA 缓冲区所需的字节数(向后兼容) * * @param queue_size 队列大小(2 的幂,默认 128) * @return 所需的 DMA 内存字节数 */
src/device/virtio/device/blk/virtio_blk.hpp:86
Method
CalcSize
* @brief 计算给定队列大小所需的 DMA 内存字节数 * * @param queue_size 队列大小(必须为 2 的幂) * @param event_idx 是否启用 VIRTIO_F_EVENT_IDX 特性 * @param used_align Used
src/device/virtio/virt_queue/split.hpp:203
Method
CfsScheduler
@name 构造/析构函数 @{
src/task/include/cfs_scheduler.hpp:193
Method
CheckElfClass
* 检查 ELF class (32/64 bit) */
src/include/kernel_elf.hpp:143
Method
CheckElfIdentity
* 检查 elf 标识 * @return 成功返回 Expected<void>,失败返回错误 */
src/include/kernel_elf.hpp:124
Method
CheckElfMagic
* 检查 ELF magic number */
src/include/kernel_elf.hpp:132
Method
ClaimComplete
src/arch/riscv64/plic/plic.cpp:149
Method
Clear
src/arch/aarch64/gic/gic.cpp:77
Method
ClearInterrupt
* @brief 清除指定中断 * * 向 ICR 寄存器写入位掩码以清除对应的中断。 * * @param mask 要清除的中断位掩码 */
src/device/pl011/pl011.hpp:93
Method
Close
src/filesystem/fatfs/fatfs.cpp:465
Method
Close
tests/unit_test/vfs_test.cpp:30
Method
CloseAll
src/filesystem/file_descriptor.cpp:144
Method
CoreEnvironment
构造函数
tests/unit_test/mocks/test_environment_state.hpp:53
Method
CountNodesByDeviceType
* @brief 按 device_type 统计节点数量 * @param device_type 设备类型 * @return Expected<size_t> 节点数量 */
src/include/kernel_fdt.hpp:757
Function
CppDeInit
* c++ 全局对象析构 */
src/libcxx/kstd_libcxx.cpp:230
Method
CpuSchedData
@name 构造/析构函数 @{
src/task/include/task_manager.hpp:71
Method
Create
* @brief 工厂方法:创建并初始化 NS16550A 驱动 * @param dev_addr 设备 MMIO 基地址 * @return 成功返回已初始化的 Ns16550a 实例,失败返回错误 */
src/device/ns16550a/ns16550a.hpp:30
Method
Create
* @brief 创建并初始化块设备 * * 内部自动完成: * 1. Transport 初始化和验证 * 2. Virtqueue 创建 * 3. VirtIO 设备初始化序列(重置、特性协商、队列配置、设备激活) * * @param mmio_bas
src/device/virtio/device/blk/virtio_blk.hpp:122
Method
Create
src/filesystem/fatfs/fatfs.cpp:334
Function
DefaultExceptionHandler
src/arch/riscv64/interrupt.cpp:25
Function
DefaultInterruptHandler
src/arch/riscv64/interrupt.cpp:17
Function
DefaultInterruptHandler
* @brief 默认中断处理函数 * @param cause 中断号 * @param context 中断上下文 * @return 始终返回 0 */
src/arch/aarch64/interrupt.cpp:19
Function
DefaultPlicHandler
src/arch/riscv64/plic/plic.cpp:13
Method
Dequeue
* @brief 从就绪队列中移除指定任务 * @param task 要移除的任务 */
src/task/include/fifo_scheduler.hpp:41
Method
Dequeue
* @brief 从就绪队列中移除指定任务 * @param task 要移除的任务控制块指针 * * 用于任务主动退出或被阻塞等场景。 */
src/task/include/rr_scheduler.hpp:49
Method
Dequeue
* @brief 从队列中移除任务 * @param task 要移除的任务 */
src/task/include/idle_scheduler.hpp:34
Method
Derived
tests/unit_test/sk_unique_ptr_test.cpp:209
Method
DeviceInitializer
@name 构造/析构函数 @{ * @brief 构造函数 * * @param transport 传输层引用(必须在 DeviceInitializer 生命周期内保持有效) * @pre transport.IsValid() == true */
src/device/virtio/device/device_initializer.hpp:193
Method
DeviceManager
@name 构造 / 析构 @{
src/device/include/device_manager.hpp:100
Method
Disable
src/arch/aarch64/gic/gic.cpp:71
Method
Do
src/arch/riscv64/plic/plic.cpp:66
Method
DoEnqueue
* @brief 异步入队请求的内部实现 * * 分配请求槽,填充请求头,构建 Scatter-Gather 描述符链,提交到 Available * Ring。 * * @param type 请求类型(kIn/kOut) * @param queue_inde
src/device/virtio/device/blk/virtio_blk.hpp:566
Method
DriverRegistry
@name 构造 / 析构 @{
src/device/include/driver_registry.hpp:112
Method
DumpAllCoreStates
tests/unit_test/mocks/test_environment_state.cpp:127
Function
DumpStack
src/arch/aarch64/backtrace.cpp:34
Method
EarlyConsole
初始化 PL011 串口输出
src/arch/aarch64/early_console.cpp:22
Function
EbreakHandler
ebreak 中断处理
src/arch/riscv64/interrupt_main.cpp:36
Method
Enable
src/arch/aarch64/gic/gic.cpp:60
Method
Enqueue
* @brief 将任务加入就绪队列尾部 * @param task 要加入的任务 */
src/task/include/fifo_scheduler.hpp:28
Method
Enqueue
* @brief 将任务加入就绪队列尾部 * @param task 任务控制块指针 * * 重置任务的时间片并将其加入队列尾部,实现公平的时间片轮转。 */
src/task/include/rr_scheduler.hpp:28
Method
Enqueue
* @brief 将 idle 任务加入队列 * @param task 要加入的任务(通常只有一个 idle 任务) */
src/task/include/idle_scheduler.hpp:25
Method
EnqueueRead
* @brief 异步提交读请求(仅入队描述符,不触发硬件通知) * * 构建 virtio-blk 请求描述符链(header + data buffers + status), * 提交到 Available Ring,但不通知设备。调用者需随后调用 Kick() 通知。
src/device/virtio/device/blk/virtio_blk.hpp:200
Method
EnqueueWrite
* @brief 异步提交写请求(仅入队描述符,不触发硬件通知) * * 构建 virtio-blk 请求描述符链(header + data buffers + status), * 提交到 Available Ring,但不通知设备。调用者需随后调用 Kick() 通知。
src/device/virtio/device/blk/virtio_blk.hpp:224
Method
Error
src/include/expected.hpp:340
Function
ExternalInterruptHandler
外部中断分发器:CPU 外部中断 -> PLIC -> 设备 handler
src/arch/riscv64/interrupt_main.cpp:26
Method
FatFsFileOps
src/filesystem/fatfs/include/fatfs.hpp:187
Method
FatFsFileSystem
src/filesystem/fatfs/fatfs.cpp:92
Method
FatFsFileSystem
src/filesystem/fatfs/include/fatfs.hpp:50
Method
FatFsInodeOps
src/filesystem/fatfs/include/fatfs.hpp:132
Method
FifoScheduler
@name 构造/析构函数 @{
src/task/include/fifo_scheduler.hpp:89
Method
FileDescriptorTable
src/filesystem/file_descriptor.cpp:11
Method
FileDescriptorTable
src/filesystem/include/file_descriptor.hpp:36
Method
FileOps
@name 构造/析构函数 @{
src/filesystem/vfs/include/vfs_types.hpp:251
Method
FindCompatibleNode
* @brief 按 compatible 查找第一个匹配的节点 * @param compatible 要查找的 compatible 字符串 * @return Expected<int> 节点偏移量 */
src/include/kernel_fdt.hpp:690
Method
FindDevice
src/device/device_manager.cpp:49
Method
FindEnabledCompatibleNode
* @brief 根据 compatible 查找已启用的节点(跳过 status="disabled") * @param compatible 要查找的 compatible 字符串 * @return Expected<int> 节点偏移量 */
src/include/kernel_fdt.hpp:704
Method
FindNode
* @brief 按路径查找节点 * @param path 节点路径(如 "/memory") * @return Expected<int> 节点偏移量 */
src/include/kernel_fdt.hpp:677
Method
FindPageTableEntry
src/memory/virtual_memory.cpp:298
Method
FindSlotByDescHead
* @brief 根据描述符链头索引查找请求槽 * * @param desc_head 描述符链头索引 * @return 匹配的槽索引,未找到则返回 kMaxInflight */
src/device/virtio/device/blk/virtio_blk.hpp:709
Function
Flush
强制将队列中所有日志条目输出至串口
src/include/kernel_log.hpp:208
Method
Free
src/filesystem/file_descriptor.cpp:89
Method
FreeDesc
* @brief 归还描述符到空闲链表 * * 将不再使用的描述符放回空闲链表,供后续分配使用。 * 对于描述符链,调用者必须按正确的顺序释放链中的每个描述符。 * * @param idx 要释放的描述符索引(必须为之前分配的有效索引) * * @warn
src/device/virtio/virt_queue/split.hpp:322
Method
FreeFatInode
src/filesystem/fatfs/fatfs.cpp:218
Method
FreeInode
src/filesystem/fatfs/fatfs.cpp:196
Method
FreeRequestSlot
* @brief 释放请求槽 * * @param idx 槽索引 */
src/device/virtio/device/blk/virtio_blk.hpp:697
Method
Get
src/filesystem/file_descriptor.cpp:80
Method
GetAllSwitchHistory
tests/unit_test/mocks/test_environment_state.cpp:144
Method
GetBlkDevice
* @brief 获取第一个 VirtIO 块设备实例 * @return 设备实例指针,若不存在则返回 nullptr */
src/device/virtio/virtio_driver.hpp:111
Method
GetBlockDevice
src/filesystem/fatfs/fatfs.cpp:85
Method
GetBuffer
tests/unit_test/mocks/io_buffer_mock.cpp:40
← previous
next →
401–500 of 1,141, ranked by callers