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
↓ 2 callers
Method
RegisterExternalInterrupt
src/arch/riscv64/interrupt.cpp:116
↓ 2 callers
Function
RemoveChild
src/filesystem/vfs/vfs.cpp:63
↓ 2 callers
Method
RemoveFromDirectory
src/filesystem/ramfs/ramfs.cpp:544
↓ 2 callers
Method
Reset
* @brief 重置设备 * @see virtio-v1.2#2.1 Device Status Field */
src/device/virtio/transport/transport.hpp:110
↓ 2 callers
Method
Reset
tests/unit_test/virtual_memory_test.cpp:49
↓ 2 callers
Method
SetDriverFeatures
src/device/virtio/transport/pci.hpp:26
↓ 2 callers
Method
SetQueueAvail
src/device/virtio/transport/pci.hpp:33
↓ 2 callers
Method
SetQueueDesc
src/device/virtio/transport/pci.hpp:32
↓ 2 callers
Method
SetQueueNum
src/device/virtio/transport/pci.hpp:31
↓ 2 callers
Method
SetQueueReady
src/device/virtio/transport/pci.hpp:38
↓ 2 callers
Method
SetQueueUsed
src/device/virtio/transport/pci.hpp:34
↓ 2 callers
Function
SetRootDentry
内部接口:设置根 dentry
src/filesystem/vfs/vfs.cpp:99
↓ 2 callers
Method
SubmitChain
* @brief 提交 Scatter-Gather 描述符链 * * 从空闲链表分配描述符,按顺序组装 readable(设备只读)和 * writable(设备可写) 缓冲区为描述符链,自动设置 NEXT 标志串联,并提交到 * Available Ring。 *
src/device/virtio/virt_queue/split.hpp:460
↓ 2 callers
Method
TickUpdate
src/task/tick_update.cpp:9
↓ 2 callers
Function
TimerInit
src/arch/riscv64/timer.cpp:36
↓ 2 callers
Function
TimerInitSMP
src/arch/riscv64/timer.cpp:28
↓ 2 callers
Method
ToDmaRegion
src/io_buffer.cpp:56
↓ 2 callers
Method
TryLock
src/task/mutex.cpp:101
↓ 2 callers
Method
UnLock
* @brief 释放锁 * @return Expected<void> 成功返回空值,失败返回错误 */
src/include/spinlock.hpp:66
↓ 2 callers
Method
Unmount
src/filesystem/vfs/mount.cpp:108
↓ 2 callers
Function
WakeUpOtherCores
src/arch/riscv64/arch_main.cpp:62
↓ 2 callers
Method
Write
tests/unit_test/vfs_test.cpp:24
↓ 2 callers
Method
avail_event
* @brief 获取 avail_event 字段的指针 * @param queue_size 队列大小 * @return avail_event 字段指针 * @note 仅当协商 VIRTIO_F_EVENT_IDX 特性时使用 * @see vir
src/device/virtio/virt_queue/split.hpp:178
↓ 2 callers
Function
isalpha
src/libc/sk_ctype.c:13
↓ 2 callers
Function
islower
src/libc/sk_ctype.c:23
↓ 2 callers
Function
isspace
src/libc/sk_ctype.c:29
↓ 2 callers
Function
isupper
src/libc/sk_ctype.c:34
↓ 2 callers
Function
strtod
src/libc/sk_stdlib.c:160
↓ 2 callers
Function
strtol
src/libc/sk_stdlib.c:136
↓ 2 callers
Function
strtoll
src/libc/sk_stdlib.c:117
↓ 2 callers
Function
strtox_main
Internal helper for string to number conversion Parses magnitude into unsigned long long. handles base detection, whitespace, signs.
src/libc/sk_stdlib.c:27
↓ 2 callers
Function
syscall_dispatcher
src/syscall.cpp:17
↓ 2 callers
Method
used_event
* @brief 获取 used_event 字段的指针 * @param queue_size 队列大小 * @return used_event 字段指针 * @note 仅当协商 VIRTIO_F_EVENT_IDX 特性时使用 * @see virti
src/device/virtio/virt_queue/split.hpp:123
↓ 1 callers
Method
Activate
* @brief 激活设备,开始正常运行 * * 设置 DRIVER_OK 状态位,完成设备初始化流程(步骤 8)。 * 必须在所有队列配置完成后调用。 * 调用后设备开始正常运行,可以处理队列中的请求。 * * @return 成功或失败 * @pre t
src/device/virtio/device/device_initializer.hpp:153
↓ 1 callers
Method
AddToDirectory
src/filesystem/ramfs/ramfs.cpp:497
↓ 1 callers
Method
AlignedAlloc
tests/unit_test/virtual_memory_test.cpp:29
↓ 1 callers
Method
AllocateDir
src/filesystem/fatfs/fatfs.cpp:244
↓ 1 callers
Method
AllocateInode
src/filesystem/ramfs/ramfs.cpp:109
↓ 1 callers
Method
AllocateInode
tests/unit_test/vfs_test.cpp:73
↓ 1 callers
Method
AvailIdx
* @brief 获取当前 Available Ring 索引 */
src/device/virtio/virt_queue/split.hpp:630
↓ 1 callers
Method
AvailPhys
* @brief 获取 Available Ring 的物理地址 * @see virtio-v1.2#2.7.6 */
src/device/virtio/virt_queue/split.hpp:570
↓ 1 callers
Method
AvailUsedEvent
* @brief 获取 Available Ring 的 used_event 字段 * * @return used_event 字段指针,未启用 EVENT_IDX 则返回 nullptr * @see virtio-v1.2#2.7.10 */
src/device/virtio/virt_queue/split.hpp:598
↓ 1 callers
Method
BroadcastIpi
src/arch/riscv64/interrupt.cpp:99
↓ 1 callers
Method
CheckPSCI
* @brief 判断 PSCI 信息 * @return Expected<void> 成功返回空,失败返回错误 * @pre fdt_header_ 不为空 */
src/include/kernel_fdt.hpp:71
↓ 1 callers
Method
ClearPending
* @brief 清除待处理信号 * @param signum 信号编号 */
src/include/signal.hpp:155
↓ 1 callers
Method
ClearSwitchHistory
tests/unit_test/mocks/test_environment_state.cpp:162
↓ 1 callers
Method
Close
src/filesystem/ramfs/ramfs.cpp:415
↓ 1 callers
Method
DescPhys
* @brief 获取描述符表的物理地址 * @see virtio-v1.2#2.7.5 */
src/device/virtio/virt_queue/split.hpp:562
↓ 1 callers
Method
Do
src/arch/aarch64/interrupt.cpp:63
↓ 1 callers
Method
Done
src/arch/riscv64/plic/plic.cpp:56
↓ 1 callers
Method
Dup
src/filesystem/file_descriptor.cpp:106
↓ 1 callers
Function
EnablePage
tests/unit_test/mocks/cpu_io.h:134
↓ 1 callers
Method
Exit
src/task/exit.cpp:12
↓ 1 callers
Method
ExpandFile
src/filesystem/ramfs/ramfs.cpp:580
↓ 1 callers
Function
FilInfoToFileType
* @brief 将 FILINFO 属性转换为 vfs::FileType */
src/filesystem/fatfs/fatfs.cpp:69
↓ 1 callers
Method
FindByMountDentry
src/filesystem/vfs/mount.cpp:203
↓ 1 callers
Method
FindDriver
* @brief 查找 match_table 中含有 node.compatible 字符串的第一个驱动 * (flat_map 查找,O(Cn · log T))。 * * @return DriverEntry 指针,若无匹配则返回 nullptr */
src/device/include/driver_registry.hpp:93
↓ 1 callers
Method
ForEachDeviceNode
src/include/kernel_fdt.hpp:519
↓ 1 callers
Method
ForEachNode
src/include/kernel_fdt.hpp:365
↓ 1 callers
Method
FreeFil
src/filesystem/fatfs/fatfs.cpp:235
↓ 1 callers
Method
FreeInode
tests/unit_test/vfs_test.cpp:77
↓ 1 callers
Method
GetBuffer
src/io_buffer.cpp:48
↓ 1 callers
Method
GetChar
* @brief 阻塞式读取一个字符 * @return 读取到的字符 */
src/device/pl011/pl011.hpp:38
↓ 1 callers
Method
GetConfigGeneration
src/device/virtio/transport/pci.hpp:56
↓ 1 callers
Method
GetCoreIdForThread
tests/unit_test/mocks/test_environment_state.cpp:76
↓ 1 callers
Method
GetCurrentCpuSched
* @brief 获取当前核心的调度数据 * @return CpuSchedData& 当前核心的调度数据引用 */
src/task/include/task_manager.hpp:218
↓ 1 callers
Function
GetDefaultSignalAction
* @brief 获取信号的默认动作 * @param signum 信号编号 * @return 默认动作 ('T'=终止, 'I'=忽略, 'C'=核心转储, 'S'=停止, 'K'=继续) */
src/include/signal.hpp:241
↓ 1 callers
Method
GetDeviceId
src/device/virtio/transport/pci.hpp:19
↓ 1 callers
Function
GetErrorMessage
获取错误码对应的错误信息
src/include/expected.hpp:139
↓ 1 callers
Method
GetFileOps
src/filesystem/ramfs/ramfs.cpp:167
↓ 1 callers
Method
GetGIC
* @brief 获取 GIC 信息 * @return Expected<std::tuple<...>> * <dist地址,dist大小,redist地址,redist大小> * @pre fdt_header_ 不为空 */
src/include/kernel_fdt.hpp:198
↓ 1 callers
Method
GetIrq
* @brief 获取第一个块设备的 IRQ 号 * @return IRQ 号,若无设备则返回 0 */
src/device/virtio/virtio_driver.hpp:121
↓ 1 callers
Function
GetKernelPagePermissions
获取内核页面权限
tests/unit_test/mocks/cpu_io.h:99
↓ 1 callers
Method
GetNextDeliverableSignal
* @brief 获取下一个可投递的信号编号 * @return int 信号编号,无可投递信号返回 0 * @note 优先级从低编号到高编号 */
src/include/signal.hpp:127
↓ 1 callers
Method
GetPlic
* @brief 获取 PLIC 信息 * @return Expected<std::tuple<...>> * <地址,长度,中断源数量,上下文数量> * @pre fdt_header_ 不为空 * @see https://github.com/qem
src/include/kernel_fdt.hpp:310
↓ 1 callers
Method
GetQueueReady
src/device/virtio/transport/pci.hpp:35
↓ 1 callers
Method
GetRegistry
* @brief 访问驱动注册表。 * * @return DriverRegistry& 驱动注册表实例 */
src/device/include/device_manager.hpp:96
↓ 1 callers
Function
GetResourceTypeName
* @brief 获取资源类型的字符串表示(用于调试) * @param type 资源类型 * @return 类型名称字符串 */
src/task/include/resource_id.hpp:45
↓ 1 callers
Method
GetSectorSize
src/device/virtio/device/blk/virtio_blk_vfs_adapter.hpp:66
↓ 1 callers
Method
GetStateId
* @brief 获取当前状态 ID(线程安全) * @return etl::fsm_state_id_t 当前状态 ID * @note 使用 acquire 语义从 atomic 缓存读取, * 无需持有与 Receive() 相同的锁即可安全调用 */
src/task/include/task_fsm.hpp:181
↓ 1 callers
Method
GetValue
tests/unit_test/sk_unique_ptr_test.cpp:205
↓ 1 callers
Method
GetVendorId
src/device/virtio/transport/pci.hpp:20
↓ 1 callers
Method
HasData
* @brief 检查接收缓冲区是否有数据可读(不消耗数据) * @return true 如果有数据可读 */
src/device/pl011/pl011.hpp:59
↓ 1 callers
Method
HasDeliverableSignal
* @brief 检查是否有可投递的信号 * @return true 有未屏蔽的待处理信号 */
src/include/signal.hpp:117
↓ 1 callers
Function
IdentityVirtToPhys
* @brief 恒等映射:物理地址 == 虚拟地址(早期启动 / 无 MMU 时的默认实现) * @param virt 虚拟地址 * @return 与输入相同的物理地址 */
src/include/io_buffer.hpp:25
↓ 1 callers
Method
Init
* @brief 执行 virtio 设备初始化序列 * * 完整执行设备初始化流程(步骤 1-6): * 1. 重置设备(写入 0 到 status 寄存器) * 2. 设置 ACKNOWLEDGE 状态位(识别为 virtio 设备) * 3. 设置 DRIVER
src/device/virtio/device/device_initializer.hpp:65
↓ 1 callers
Method
InitPlic
src/arch/riscv64/interrupt.cpp:135
↓ 1 callers
Function
InitTaskContext
src/arch/riscv64/arch_main.cpp:72
↓ 1 callers
Method
IsDirectoryEmpty
src/filesystem/ramfs/ramfs.cpp:571
↓ 1 callers
Method
IsMountPoint
src/filesystem/vfs/mount.cpp:217
↓ 1 callers
Function
IsPowerOfTwo
* @brief 检查值是否为 2 的幂 * * @param value 要检查的值 * @return true 表示 value 是 2 的幂,false 表示不是 * @note value 为 0 时返回 false * @see virtio-v1.2#2.6 Split Vi
src/device/virtio/virt_queue/misc.hpp:32
↓ 1 callers
Method
IsValid
* @brief 检查 virtqueue 是否成功初始化 */
src/device/virtio/virt_queue/split.hpp:283
↓ 1 callers
Method
LastUsedIdx
* @brief 获取驱动程序上次处理到的 Used Ring 索引 */
src/device/virtio/virt_queue/split.hpp:635
↓ 1 callers
Function
LoadElf
src/task/task_control_block.cpp:21
↓ 1 callers
Function
Mb
Memory barrier stubs for unit testing
tests/unit_test/mocks/cpu_io.h:56
↓ 1 callers
Method
Open
* @brief 打开文件,准备底层 I/O 句柄 * @param file 文件对象 * @return Expected<void> 成功或错误 * @pre file != nullptr * @note 默认实现为空操作,适用于不需要额外打开步骤的文件系统(如 ra
src/filesystem/vfs/include/vfs_types.hpp:191
↓ 1 callers
Method
OpenFil
src/filesystem/fatfs/fatfs.cpp:264
↓ 1 callers
Method
ProbeAll
src/device/device_manager.cpp:11
↓ 1 callers
Method
PutChar
* @brief 写入一个字符 * @param c 待写入的字符 */
src/device/pl011/pl011.hpp:28
↓ 1 callers
Function
QemuExit
测试结束后退出 QEMU,success=true 表示全部通过
tests/system_test/system_test.h:208
← previous
next →
201–300 of 1,141, ranked by callers