MCPcopy Create free account

hub / github.com/Simple-XX/SimpleKernel / functions

Functions1,141 in github.com/Simple-XX/SimpleKernel

↓ 1 callersFunctiontest_rr_dequeue
tests/system_test/rr_scheduler_test.cpp:130
↓ 1 callersFunctiontest_rr_fairness
tests/system_test/rr_scheduler_test.cpp:225
↓ 1 callersFunctiontest_rr_hooks
tests/system_test/rr_scheduler_test.cpp:334
↓ 1 callersFunctiontest_rr_interleaved_operations
tests/system_test/rr_scheduler_test.cpp:394
↓ 1 callersFunctiontest_rr_mixed_operations
tests/system_test/rr_scheduler_test.cpp:260
↓ 1 callersFunctiontest_rr_multiple_rounds
tests/system_test/rr_scheduler_test.cpp:306
↓ 1 callersFunctiontest_rr_robustness
tests/system_test/rr_scheduler_test.cpp:366
↓ 1 callersFunctiontest_rr_round_robin_behavior
tests/system_test/rr_scheduler_test.cpp:64
↓ 1 callersFunctiontest_rr_statistics
tests/system_test/rr_scheduler_test.cpp:174
↓ 1 callersFunctiontest_rr_time_slice_management
tests/system_test/rr_scheduler_test.cpp:100
↓ 1 callersFunctiontoupper
src/libc/sk_ctype.c:47
MethodAbsClass
tests/system_test/ctor_dtor_test.cpp:52
MethodAckInterrupt
src/device/virtio/transport/mmio.hpp:302
MethodAcknowledgeInterrupt
* @brief 确认并清除设备中断 * @see virtio-v1.2#2.3 Notifications */
src/device/virtio/transport/transport.hpp:137
MethodAcpi
@name 构造/析构函数 @{ * @brief 构造函数 * @param rsdp RSDP 地址 */
src/device/acpi/acpi.hpp:26
MethodAllocDesc
* @brief 从空闲链表分配一个描述符 * * 从空闲描述符链表中取出一个描述符,供上层使用。 * 调用者必须填充描述符的 addr、len、flags 和 next 字段。 * * @return 成功返回描述符索引(range: 0 ~ queue_size-1
src/device/virtio/virt_queue/split.hpp:298
MethodAllocRequestSlot
* @brief 从请求槽池中分配一个空闲槽(O(1) 位图算法) * * 使用 __builtin_ctzll 找到 slot_bitmap_ 中最低的 0 位。 * * @return 成功返回槽索引,失败返回错误 */
src/device/virtio/device/blk/virtio_blk.hpp:679
MethodAllocateDirEntries
src/filesystem/ramfs/ramfs.cpp:620
MethodAllocateFatInode
src/filesystem/fatfs/fatfs.cpp:207
MethodAllocateFil
src/filesystem/fatfs/fatfs.cpp:224
MethodAllocateFileData
src/filesystem/ramfs/ramfs.cpp:609
MethodAllocatePid
src/task/task_manager.cpp:165
FunctionArchInit
src/arch/aarch64/arch_main.cpp:48
FunctionArchInitSMP
src/arch/aarch64/arch_main.cpp:65
MethodArrayObj
tests/unit_test/sk_unique_ptr_test.cpp:244
MethodBalance
src/task/task_manager.cpp:181
MethodBasicInfo
src/arch/riscv64/arch_main.cpp:21
MethodBasicInfo
src/arch/aarch64/arch_main.cpp:20
MethodBasicInfo
src/include/basic_info.hpp:58
MethodBroadcastIpi
src/arch/aarch64/interrupt.cpp:93
MethodCalcDmaSize
* @brief 计算单个 Virtqueue DMA 缓冲区所需的字节数(向后兼容) * * @param queue_size 队列大小(2 的幂,默认 128) * @return 所需的 DMA 内存字节数 */
src/device/virtio/device/blk/virtio_blk.hpp:86
MethodCalcSize
* @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
MethodCfsScheduler
@name 构造/析构函数 @{
src/task/include/cfs_scheduler.hpp:193
MethodCheckElfClass
* 检查 ELF class (32/64 bit) */
src/include/kernel_elf.hpp:143
MethodCheckElfIdentity
* 检查 elf 标识 * @return 成功返回 Expected<void>,失败返回错误 */
src/include/kernel_elf.hpp:124
MethodCheckElfMagic
* 检查 ELF magic number */
src/include/kernel_elf.hpp:132
MethodClaimComplete
src/arch/riscv64/plic/plic.cpp:149
MethodClear
src/arch/aarch64/gic/gic.cpp:77
MethodClearInterrupt
* @brief 清除指定中断 * * 向 ICR 寄存器写入位掩码以清除对应的中断。 * * @param mask 要清除的中断位掩码 */
src/device/pl011/pl011.hpp:93
MethodClose
src/filesystem/fatfs/fatfs.cpp:465
MethodClose
tests/unit_test/vfs_test.cpp:30
MethodCloseAll
src/filesystem/file_descriptor.cpp:144
MethodCoreEnvironment
构造函数
tests/unit_test/mocks/test_environment_state.hpp:53
MethodCountNodesByDeviceType
* @brief 按 device_type 统计节点数量 * @param device_type 设备类型 * @return Expected<size_t> 节点数量 */
src/include/kernel_fdt.hpp:757
FunctionCppDeInit
* c++ 全局对象析构 */
src/libcxx/kstd_libcxx.cpp:230
MethodCpuSchedData
@name 构造/析构函数 @{
src/task/include/task_manager.hpp:71
MethodCreate
* @brief 工厂方法:创建并初始化 NS16550A 驱动 * @param dev_addr 设备 MMIO 基地址 * @return 成功返回已初始化的 Ns16550a 实例,失败返回错误 */
src/device/ns16550a/ns16550a.hpp:30
MethodCreate
* @brief 创建并初始化块设备 * * 内部自动完成: * 1. Transport 初始化和验证 * 2. Virtqueue 创建 * 3. VirtIO 设备初始化序列(重置、特性协商、队列配置、设备激活) * * @param mmio_bas
src/device/virtio/device/blk/virtio_blk.hpp:122
MethodCreate
src/filesystem/fatfs/fatfs.cpp:334
FunctionDefaultExceptionHandler
src/arch/riscv64/interrupt.cpp:25
FunctionDefaultInterruptHandler
src/arch/riscv64/interrupt.cpp:17
FunctionDefaultInterruptHandler
* @brief 默认中断处理函数 * @param cause 中断号 * @param context 中断上下文 * @return 始终返回 0 */
src/arch/aarch64/interrupt.cpp:19
FunctionDefaultPlicHandler
src/arch/riscv64/plic/plic.cpp:13
MethodDequeue
* @brief 从就绪队列中移除指定任务 * @param task 要移除的任务 */
src/task/include/fifo_scheduler.hpp:41
MethodDequeue
* @brief 从就绪队列中移除指定任务 * @param task 要移除的任务控制块指针 * * 用于任务主动退出或被阻塞等场景。 */
src/task/include/rr_scheduler.hpp:49
MethodDequeue
* @brief 从队列中移除任务 * @param task 要移除的任务 */
src/task/include/idle_scheduler.hpp:34
MethodDerived
tests/unit_test/sk_unique_ptr_test.cpp:209
MethodDeviceInitializer
@name 构造/析构函数 @{ * @brief 构造函数 * * @param transport 传输层引用(必须在 DeviceInitializer 生命周期内保持有效) * @pre transport.IsValid() == true */
src/device/virtio/device/device_initializer.hpp:193
MethodDeviceManager
@name 构造 / 析构 @{
src/device/include/device_manager.hpp:100
MethodDisable
src/arch/aarch64/gic/gic.cpp:71
MethodDo
src/arch/riscv64/plic/plic.cpp:66
MethodDoEnqueue
* @brief 异步入队请求的内部实现 * * 分配请求槽,填充请求头,构建 Scatter-Gather 描述符链,提交到 Available * Ring。 * * @param type 请求类型(kIn/kOut) * @param queue_inde
src/device/virtio/device/blk/virtio_blk.hpp:566
MethodDriverRegistry
@name 构造 / 析构 @{
src/device/include/driver_registry.hpp:112
MethodDumpAllCoreStates
tests/unit_test/mocks/test_environment_state.cpp:127
FunctionDumpStack
src/arch/aarch64/backtrace.cpp:34
MethodEarlyConsole
初始化 PL011 串口输出
src/arch/aarch64/early_console.cpp:22
FunctionEbreakHandler
ebreak 中断处理
src/arch/riscv64/interrupt_main.cpp:36
MethodEnable
src/arch/aarch64/gic/gic.cpp:60
MethodEnqueue
* @brief 将任务加入就绪队列尾部 * @param task 要加入的任务 */
src/task/include/fifo_scheduler.hpp:28
MethodEnqueue
* @brief 将任务加入就绪队列尾部 * @param task 任务控制块指针 * * 重置任务的时间片并将其加入队列尾部,实现公平的时间片轮转。 */
src/task/include/rr_scheduler.hpp:28
MethodEnqueue
* @brief 将 idle 任务加入队列 * @param task 要加入的任务(通常只有一个 idle 任务) */
src/task/include/idle_scheduler.hpp:25
MethodEnqueueRead
* @brief 异步提交读请求(仅入队描述符,不触发硬件通知) * * 构建 virtio-blk 请求描述符链(header + data buffers + status), * 提交到 Available Ring,但不通知设备。调用者需随后调用 Kick() 通知。
src/device/virtio/device/blk/virtio_blk.hpp:200
MethodEnqueueWrite
* @brief 异步提交写请求(仅入队描述符,不触发硬件通知) * * 构建 virtio-blk 请求描述符链(header + data buffers + status), * 提交到 Available Ring,但不通知设备。调用者需随后调用 Kick() 通知。
src/device/virtio/device/blk/virtio_blk.hpp:224
MethodError
src/include/expected.hpp:340
FunctionExternalInterruptHandler
外部中断分发器:CPU 外部中断 -> PLIC -> 设备 handler
src/arch/riscv64/interrupt_main.cpp:26
MethodFatFsFileOps
src/filesystem/fatfs/include/fatfs.hpp:187
MethodFatFsFileSystem
src/filesystem/fatfs/fatfs.cpp:92
MethodFatFsFileSystem
src/filesystem/fatfs/include/fatfs.hpp:50
MethodFatFsInodeOps
src/filesystem/fatfs/include/fatfs.hpp:132
MethodFifoScheduler
@name 构造/析构函数 @{
src/task/include/fifo_scheduler.hpp:89
MethodFileDescriptorTable
src/filesystem/file_descriptor.cpp:11
MethodFileDescriptorTable
src/filesystem/include/file_descriptor.hpp:36
MethodFileOps
@name 构造/析构函数 @{
src/filesystem/vfs/include/vfs_types.hpp:251
MethodFindCompatibleNode
* @brief 按 compatible 查找第一个匹配的节点 * @param compatible 要查找的 compatible 字符串 * @return Expected<int> 节点偏移量 */
src/include/kernel_fdt.hpp:690
MethodFindDevice
src/device/device_manager.cpp:49
MethodFindEnabledCompatibleNode
* @brief 根据 compatible 查找已启用的节点(跳过 status="disabled") * @param compatible 要查找的 compatible 字符串 * @return Expected<int> 节点偏移量 */
src/include/kernel_fdt.hpp:704
MethodFindNode
* @brief 按路径查找节点 * @param path 节点路径(如 "/memory") * @return Expected<int> 节点偏移量 */
src/include/kernel_fdt.hpp:677
MethodFindPageTableEntry
src/memory/virtual_memory.cpp:298
MethodFindSlotByDescHead
* @brief 根据描述符链头索引查找请求槽 * * @param desc_head 描述符链头索引 * @return 匹配的槽索引,未找到则返回 kMaxInflight */
src/device/virtio/device/blk/virtio_blk.hpp:709
FunctionFlush
强制将队列中所有日志条目输出至串口
src/include/kernel_log.hpp:208
MethodFree
src/filesystem/file_descriptor.cpp:89
MethodFreeDesc
* @brief 归还描述符到空闲链表 * * 将不再使用的描述符放回空闲链表,供后续分配使用。 * 对于描述符链,调用者必须按正确的顺序释放链中的每个描述符。 * * @param idx 要释放的描述符索引(必须为之前分配的有效索引) * * @warn
src/device/virtio/virt_queue/split.hpp:322
MethodFreeFatInode
src/filesystem/fatfs/fatfs.cpp:218
MethodFreeInode
src/filesystem/fatfs/fatfs.cpp:196
MethodFreeRequestSlot
* @brief 释放请求槽 * * @param idx 槽索引 */
src/device/virtio/device/blk/virtio_blk.hpp:697
MethodGet
src/filesystem/file_descriptor.cpp:80
MethodGetAllSwitchHistory
tests/unit_test/mocks/test_environment_state.cpp:144
MethodGetBlkDevice
* @brief 获取第一个 VirtIO 块设备实例 * @return 设备实例指针,若不存在则返回 nullptr */
src/device/virtio/virtio_driver.hpp:111
MethodGetBlockDevice
src/filesystem/fatfs/fatfs.cpp:85
MethodGetBuffer
tests/unit_test/mocks/io_buffer_mock.cpp:40
← previousnext →401–500 of 1,141, ranked by callers