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
↓ 5 callers
Method
IsValid
tests/unit_test/mocks/io_buffer_mock.cpp:46
↓ 5 callers
Method
Mkdir
src/filesystem/ramfs/ramfs.cpp:252
↓ 5 callers
Function
PageTableEntryToPhysical
tests/unit_test/mocks/cpu_io.h:174
↓ 5 callers
Function
SkipLeadingSlashes
src/filesystem/vfs/vfs.cpp:22
↓ 5 callers
Function
Unlink
src/filesystem/vfs/unlink.cpp:15
↓ 5 callers
Function
etl_putchar
src/arch/riscv64/early_console.cpp:8
↓ 5 callers
Function
memmove
复制内存块,可以处理重叠区域。
src/libc/sk_string.c:22
↓ 5 callers
Function
sys_sigaction
src/syscall.cpp:342
↓ 4 callers
Method
AckInterrupt
src/device/virtio/transport/pci.hpp:42
↓ 4 callers
Function
AlignUp
* @brief 将值向上对齐到指定边界 * * @param value 要对齐的值(字节数) * @param align 对齐边界(字节数,必须为 2 的幂) * @return 对齐后的值 * @see virtio-v1.2#2.7.5 The Virtqueue Descrip
src/device/virtio/virt_queue/misc.hpp:20
↓ 4 callers
Function
FindChild
src/filesystem/vfs/vfs.cpp:38
↓ 4 callers
Method
FindTask
src/task/task_manager.cpp:175
↓ 4 callers
Method
ForEachCompatibleNode
src/include/kernel_fdt.hpp:451
↓ 4 callers
Method
GetAllocatedCount
tests/unit_test/virtual_memory_test.cpp:56
↓ 4 callers
Method
GetInterruptStatus
src/device/virtio/transport/pci.hpp:41
↓ 4 callers
Method
HasUsed
* @brief 检查 Used Ring 中是否有已完成的缓冲区 * * 通过比较驱动程序上次处理的 idx 与设备当前的 idx, * 判断是否有新的已处理缓冲区可供回收。 * * @return true 表示有已完成的缓冲区可用,false 表示没有 *
src/device/virtio/virt_queue/split.hpp:399
↓ 4 callers
Method
InitCurrentCore
src/task/task_manager.cpp:39
↓ 4 callers
Function
MkDir
src/filesystem/vfs/mkdir.cpp:14
↓ 4 callers
Method
NotifyQueue
src/device/virtio/transport/pci.hpp:40
↓ 4 callers
Method
ReadConfigU16
src/device/virtio/transport/pci.hpp:47
↓ 4 callers
Function
Rmb
tests/unit_test/mocks/cpu_io.h:57
↓ 4 callers
Function
Seek
src/filesystem/vfs/seek.cpp:13
↓ 4 callers
Method
max_size
* @brief Get the capacity of the queue * * @return constexpr size_t The maximum number of elements */
3rd/MPMCQueue/include/MPMCQueue.hpp:120
↓ 4 callers
Function
memchr
在内存块中查找字符
src/libc/sk_string.c:62
↓ 3 callers
Function
AddChild
src/filesystem/vfs/vfs.cpp:53
↓ 3 callers
Method
BoostPriority
* @brief 优先级提升:当任务持有资源时被更高优先级任务等待,提升其优先级 * * 用于支持优先级继承协议(防止优先级反转) * * @param task 需要提升优先级的任务 * @param new_priority 新的优先级(继承自等待者中的最高优先级)
src/task/include/scheduler_base.hpp:113
↓ 3 callers
Function
CopyPathComponent
src/filesystem/vfs/vfs.cpp:29
↓ 3 callers
Method
Data
@brief 获取虚拟基地址的类型化指针 @return uint8_t* 缓冲区数据指针
src/include/io_buffer.hpp:52
↓ 3 callers
Function
DisableInterrupt
tests/unit_test/mocks/cpu_io.h:41
↓ 3 callers
Function
DumpStack
src/arch/riscv64/backtrace.cpp:48
↓ 3 callers
Method
FindInDirectory
src/filesystem/ramfs/ramfs.cpp:481
↓ 3 callers
Method
FreeInode
src/filesystem/ramfs/ramfs.cpp:136
↓ 3 callers
Function
FresultToExpected
* @brief 将 FRESULT 转换为 Expected<void> */
src/filesystem/fatfs/fatfs.cpp:59
↓ 3 callers
Method
GetFileOps
tests/unit_test/vfs_test.cpp:79
↓ 3 callers
Method
GetName
src/filesystem/ramfs/ramfs.cpp:34
↓ 3 callers
Method
GetSerial
* @brief 获取串口信息 * @return Expected<std::tuple<uint64_t, size_t, uint32_t>> * <地址,长度,中断号> * @pre fdt_header_ 不为空 */
src/include/kernel_fdt.hpp:109
↓ 3 callers
Method
InSameThreadGroup
* @brief 检查是否与另一个任务在同一线程组 * @param other 另一个任务 * @return true 如果在同一线程组 */
src/task/include/task_control_block.hpp:263
↓ 3 callers
Method
IsLockedByCurrentTask
src/task/mutex.cpp:132
↓ 3 callers
Method
Mount
src/filesystem/vfs/mount.cpp:16
↓ 3 callers
Function
PageAlignUp
tests/unit_test/mocks/cpu_io.h:161
↓ 3 callers
Function
PhysicalToPageTableEntry
tests/unit_test/mocks/cpu_io.h:178
↓ 3 callers
Function
Prepare
* @brief 从节点提取 MMIO base/size 并通过 VirtualMemory 映射该区域。 * * 不设置 node.bound — 调用方(驱动的 Probe())负责在 * DeviceManager::lock_ 保护下将 node.bound 置为 true。 *
src/device/include/driver_registry.hpp:148
↓ 3 callers
Method
ReadConfigU64
src/device/virtio/transport/pci.hpp:53
↓ 3 callers
Method
RestorePriority
* @brief 优先级恢复:当任务释放资源后,恢复其原始优先级 * * @param task 需要恢复优先级的任务 */
src/task/include/scheduler_base.hpp:121
↓ 3 callers
Method
Rmdir
src/filesystem/ramfs/ramfs.cpp:258
↓ 3 callers
Method
Seek
tests/unit_test/vfs_test.cpp:27
↓ 3 callers
Method
Start
* @brief 启动 FSM(在 TCB 完全构造后调用) */
src/task/include/task_fsm.hpp:159
↓ 3 callers
Method
SubRegion
* @brief 在指定偏移处创建子区域 * * @param offset 相对于当前区域起始处的字节偏移 * @param len 子区域的字节长度 * @return 成功返回子区域,越界则返回错误 * * @pre offset + len <= size
src/include/io_buffer.hpp:66
↓ 3 callers
Function
TryDrain
* @brief 将队列中所有条目输出至串口 * * 使用 atomic_flag 实现非阻塞 try-lock,同一时刻仅一个核心执行排空, * 其他核心直接返回,等待下次调用时再排空。 */
src/include/kernel_log.hpp:98
↓ 3 callers
Method
Unlink
src/filesystem/ramfs/ramfs.cpp:219
↓ 3 callers
Method
UnmapPage
src/memory/virtual_memory.cpp:117
↓ 3 callers
Function
putc
tests/integration_test/aarch64_minimal/main.cpp:11
↓ 3 callers
Function
strtoull
src/libc/sk_stdlib.c:107
↓ 3 callers
Function
sys_sched_setaffinity
src/syscall.cpp:297
↓ 3 callers
Function
sys_sigprocmask
src/syscall.cpp:354
↓ 2 callers
Method
Alloc
src/filesystem/file_descriptor.cpp:61
↓ 2 callers
Method
AllocateInode
src/filesystem/fatfs/fatfs.cpp:185
↓ 2 callers
Function
ArchInit
src/arch/riscv64/arch_main.cpp:49
↓ 2 callers
Function
ArchInitSMP
src/arch/riscv64/arch_main.cpp:60
↓ 2 callers
Method
Block
src/task/block.cpp:12
↓ 2 callers
Method
CheckPendingSignals
src/task/signal.cpp:73
↓ 2 callers
Method
Clone
src/task/clone.cpp:13
↓ 2 callers
Function
CppInit
* c++ 全局对象构造 */
src/libcxx/kstd_libcxx.cpp:221
↓ 2 callers
Function
DeviceInit
设备子系统初始化入口
src/device/device.cpp:28
↓ 2 callers
Method
Do
src/arch/riscv64/interrupt.cpp:48
↓ 2 callers
Method
EnableGrp1Ns
src/arch/aarch64/gic/gic.cpp:66
↓ 2 callers
Method
Enumerate
* @brief 枚举所有含 compatible 字符串的 FDT 设备节点。 * * @param out 输出的 DeviceNode 数组 * @param max 最多写入的节点数 * @return Expected<size_t> 已写入的节点数
src/device/include/platform_bus.hpp:27
↓ 2 callers
Method
EventIdxEnabled
* @brief 检查是否启用了 VIRTIO_F_EVENT_IDX 特性 */
src/device/virtio/virt_queue/split.hpp:623
↓ 2 callers
Function
FileSystemInit
@brief 文件系统子系统初始化入口
src/filesystem/filesystem.cpp:17
↓ 2 callers
Method
FindDevicesByType
src/device/device_manager.cpp:59
↓ 2 callers
Method
FindTaskByContext
tests/unit_test/mocks/test_environment_state.cpp:117
↓ 2 callers
Method
Flush
* @brief 刷新设备缓存到物理介质 * @return Expected<void> 成功或错误 */
src/filesystem/vfs/include/block_device.hpp:73
↓ 2 callers
Function
FlushTLBAll
tests/unit_test/mocks/cpu_io.h:141
↓ 2 callers
Method
FreeChain
* @brief 释放整条描述符链 * * 从链头开始,沿 next 指针遍历并释放所有描述符,直到遇到 * 不含 kDescFNext 标志的描述符为止。 * * 典型用法:在 PopUsed() 获取已完成请求的 head 后, * 用此方法一次性归还整条链的
src/device/virtio/virt_queue/split.hpp:530
↓ 2 callers
Method
FreeDir
src/filesystem/fatfs/fatfs.cpp:255
↓ 2 callers
Method
Func
tests/system_test/ctor_dtor_test.cpp:60
↓ 2 callers
Method
GetAarch64Intid
* @brief 获取 aarch64 中断号 * @param compatible 要查找的 compatible 字符串 * @return Expected<uint64_t> intid * @pre fdt_header_ 不为空 */
src/include/kernel_fdt.hpp:262
↓ 2 callers
Method
GetCapacity
* @brief 获取设备容量 * * @return 设备容量(以 512 字节扇区为单位) * @see virtio-v1.2#5.2.4 */
src/device/virtio/device/blk/virtio_blk.hpp:454
↓ 2 callers
Method
GetCoreCount
* @brief 获取 CPU 核心数量 * @return Expected<size_t> 成功返回核心数,失败返回错误 * @pre fdt_header_ 不为空 */
src/include/kernel_fdt.hpp:54
↓ 2 callers
Method
GetDeviceFeatures
src/device/virtio/transport/pci.hpp:25
↓ 2 callers
Method
GetElfSize
* @brief 获取 elf 文件大小 * @return elf 文件大小 */
src/include/kernel_elf.hpp:33
↓ 2 callers
Method
GetName
tests/unit_test/vfs_test.cpp:53
↓ 2 callers
Method
GetQueueNumMax
src/device/virtio/transport/pci.hpp:28
↓ 2 callers
Method
GetSectorCount
src/device/virtio/device/blk/virtio_blk_vfs_adapter.hpp:70
↓ 2 callers
Function
GetTableEntryPermissions
获取页表项权限
tests/unit_test/mocks/cpu_io.h:146
↓ 2 callers
Method
GetTimebaseFrequency
* @brief 获取 CPU 时钟频率 * @return Expected<uint32_t> 时钟频率 * @pre fdt_header_ 不为空 */
src/include/kernel_fdt.hpp:173
↓ 2 callers
Function
GetVirtualPageNumber
获取虚拟页号
tests/unit_test/mocks/cpu_io.h:151
↓ 2 callers
Method
HandleInterrupt
src/device/pl011/pl011.hpp:110
↓ 2 callers
Method
InitCurrentCore
src/memory/virtual_memory.cpp:49
↓ 2 callers
Function
InterruptInit
src/arch/riscv64/interrupt_main.cpp:155
↓ 2 callers
Function
InterruptInitSMP
src/arch/riscv64/interrupt_main.cpp:220
↓ 2 callers
Method
IsThreadGroupLeader
* @brief 检查是否是线程组的主线程 * @return true 如果是主线程 (pid == tgid) */
src/task/include/task_control_block.hpp:235
↓ 2 callers
Method
LeaveThreadGroup
src/task/task_control_block.cpp:104
↓ 2 callers
Method
Lock
* @brief 获得锁 * @return Expected<void> 成功返回空值,失败返回错误 */
src/include/spinlock.hpp:36
↓ 2 callers
Function
MemoryInit
src/memory/memory.cpp:102
↓ 2 callers
Function
MemoryInitSMP
src/memory/memory.cpp:137
↓ 2 callers
Function
PageAlign
页对齐函数
tests/unit_test/mocks/cpu_io.h:157
↓ 2 callers
Method
PopUsed
* @brief 从 Used Ring 弹出一个已完成的元素 * * 从 Used Ring 中取出下一个设备已处理完成的缓冲区。 * 返回的 UsedElem 包含: * - id: 描述符链头索引(对应之前提交的 head) * - len: 设备写入的字节数(仅
src/device/virtio/virt_queue/split.hpp:417
↓ 2 callers
Method
Ppi
src/arch/aarch64/gic/gic.cpp:35
↓ 2 callers
Function
ReadDir
src/filesystem/vfs/readdir.cpp:13
← previous
next →
101–200 of 1,141, ranked by callers