Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YdrMaster/rCore-Tutorial-in-single-workspace
/ functions
Functions
637 in github.com/YdrMaster/rCore-Tutorial-in-single-workspace
⨍
Functions
637
◇
Types & classes
130
↓ 52 callers
Method
a
(&self, n: usize)
kernel-context/src/lib.rs:77
↓ 49 callers
Method
lock
获取锁,如果获取成功,返回 true,否则会返回 false,要求阻塞对应的线程
sync/src/mutex.rs:40
↓ 39 callers
Method
iter
(&self)
linker/src/lib.rs:173
↓ 34 callers
Method
current
当前进程
task-manage/src/proc_manage.rs:86
↓ 32 callers
Method
translate
检查 `flags` 的属性要求,然后将地址空间中的一个虚地址翻译成当前地址空间中的指针。
kernel-vm/src/space/mod.rs:80
↓ 30 callers
Function
exit
(exit_code: i32)
syscall/src/user.rs:44
↓ 29 callers
Method
call
(&self, id: SyscallId, f: impl FnOnce(&T) -> isize)
syscall/src/kernel/mod.rs:270
↓ 27 callers
Method
len
(&self)
linker/src/lib.rs:155
↓ 27 callers
Method
map_extern
向地址空间增加映射关系。
kernel-vm/src/space/mod.rs:43
↓ 25 callers
Method
map
分配新的物理页,拷贝数据并建立映射。
kernel-vm/src/space/mod.rs:56
↓ 24 callers
Method
get_mut
(&self)
sync/src/up.rs:49
↓ 23 callers
Method
get_current_proc
获取当前线程所属的进程
task-manage/src/thread_manager.rs:184
↓ 22 callers
Function
get_block_cache
Get the block cache corresponding to the given block id and block device
easy-fs/src/block_cache.rs:128
↓ 17 callers
Method
get_usize
(&self)
task-manage/src/id.rs:20
↓ 17 callers
Function
read
(fd: usize, buffer: &[u8])
syscall/src/user.rs:12
↓ 16 callers
Method
a_mut
(&mut self, n: usize)
kernel-context/src/lib.rs:83
↓ 16 callers
Method
modify
(&mut self, offset: usize, f: impl FnOnce(&mut T) -> V)
easy-fs/src/block_cache.rs:59
↓ 14 callers
Method
make_current_exited
结束当前进程,只会删除进程的内容,以及与当前进程相关的关系
task-manage/src/proc_manage.rs:56
↓ 14 callers
Method
root
(&self)
kernel-vm/src/space/mod.rs:38
↓ 14 callers
Function
write
(fd: usize, buffer: &[u8])
syscall/src/user.rs:7
↓ 13 callers
Method
find
Find inode under current inode by name
easy-fs/src/vfs.rs:66
↓ 13 callers
Method
into
(self)
signal-impl/src/default_action.rs:20
↓ 13 callers
Function
sigaction
( signum: SignalNo, action: *const SignalAction, old_action: *const SignalAction, )
syscall/src/user.rs:100
↓ 12 callers
Function
syscall1
(id: SyscallId, a0: usize)
syscall/src/user.rs:208
↓ 11 callers
Function
fork
()
syscall/src/user.rs:60
↓ 11 callers
Function
sched_yield
()
syscall/src/user.rs:50
↓ 10 callers
Method
end
(&self)
linker/src/lib.rs:149
↓ 10 callers
Function
kill
(pid: isize, signum: SignalNo)
syscall/src/user.rs:95
↓ 10 callers
Function
sleep
(period_ms: usize)
user/src/lib.rs:60
↓ 10 callers
Method
start
(&self)
linker/src/lib.rs:143
↓ 9 callers
Function
init_console
用户调用这个函数设置输出的方法。
console/src/lib.rs:35
↓ 9 callers
Function
set_log_level
根据环境变量设置日志级别。
console/src/lib.rs:41
↓ 9 callers
Method
sp_mut
(&mut self)
kernel-context/src/lib.rs:101
↓ 9 callers
Function
wait
(exit_code_ptr: *mut i32)
syscall/src/user.rs:68
↓ 8 callers
Function
clock_gettime
(clockid: ClockId, tp: *mut TimeSpec)
syscall/src/user.rs:56
↓ 8 callers
Method
execute
(&mut self)
ch3/src/task.rs:38
↓ 8 callers
Method
init
(&self, val: &'static T)
syscall/src/kernel/mod.rs:265
↓ 8 callers
Method
move_next
(&mut self)
kernel-context/src/lib.rs:123
↓ 8 callers
Function
syscall2
(id: SyscallId, a0: usize, a1: usize)
syscall/src/user.rs:218
↓ 8 callers
Function
test_log
打印一些测试信息。
console/src/lib.rs:47
↓ 7 callers
Method
clear
Clear the data in current inode
easy-fs/src/vfs.rs:176
↓ 7 callers
Function
handle
(caller: Caller, id: SyscallId, args: [usize; 6])
syscall/src/kernel/mod.rs:195
↓ 7 callers
Function
init_io
(io: &'static dyn IO)
syscall/src/kernel/mod.rs:156
↓ 7 callers
Function
init_process
(process: &'static dyn Process)
syscall/src/kernel/mod.rs:151
↓ 7 callers
Method
insert
(&mut self, id: ProcId, task: Process)
ch6/src/processor.rs:28
↓ 7 callers
Method
next
(&mut self)
linker/src/lib.rs:225
↓ 7 callers
Function
open
(path: &str, flags: OpenFlags)
syscall/src/user.rs:27
↓ 7 callers
Method
read
(&mut self, mut buf: UserBuffer)
easy-fs/src/file.rs:104
↓ 7 callers
Method
zero_bss
(&self)
linker/src/lib.rs:161
↓ 6 callers
Method
as_bytes
Serialize into bytes
easy-fs/src/layout.rs:418
↓ 6 callers
Method
exclusive_access
Panic if the data has been borrowed.
sync/src/up.rs:112
↓ 6 callers
Function
init
初始化全局分配器和内核堆分配器。
user/src/heap.rs:9
↓ 6 callers
Function
init_clock
(clock: &'static dyn Clock)
syscall/src/kernel/mod.rs:171
↓ 6 callers
Function
init_scheduling
(scheduling: &'static dyn Scheduling)
syscall/src/kernel/mod.rs:166
↓ 6 callers
Function
waittid
(tid: usize)
syscall/src/user.rs:136
↓ 5 callers
Method
add
添加进程,需要指明创建的进程的父进程 Id
task-manage/src/proc_manage.rs:77
↓ 5 callers
Method
create
A data block of block size
easy-fs/src/efs.rs:24
↓ 5 callers
Function
f
()
user/src/bin/race_adder_mutex_blocking.rs:16
↓ 5 callers
Method
find
(&self, path: &str)
ch8/src/fs.rs:38
↓ 5 callers
Method
get_disk_inode_pos
Get inode by id
easy-fs/src/efs.rs:115
↓ 5 callers
Function
getpid
()
syscall/src/user.rs:90
↓ 5 callers
Method
len
Length of `UserBuffer`
easy-fs/src/file.rs:20
↓ 5 callers
Method
make_current_suspend
阻塞当前进程
task-manage/src/proc_manage.rs:50
↓ 5 callers
Function
semaphore_down
(sem_id: usize)
syscall/src/user.rs:158
↓ 5 callers
Function
semaphore_up
(sem_id: usize)
syscall/src/user.rs:153
↓ 5 callers
Function
syscall0
(id: SyscallId)
syscall/src/user.rs:198
↓ 5 callers
Function
thread_create
(entry: usize, arg: usize)
syscall/src/user.rs:126
↓ 5 callers
Function
transfer
(region: &'static mut [u8])
kernel-alloc/src/lib.rs:36
↓ 4 callers
Method
add
添加 id 进入调度队列
ch6/src/processor.rs:45
↓ 4 callers
Method
add
添加 id 进入调度队列
ch8/src/processor.rs:46
↓ 4 callers
Method
add_child
添加子进程 Id
task-manage/src/proc_rel.rs:25
↓ 4 callers
Function
block_cache_sync_all
Sync all block cache to block device
easy-fs/src/block_cache.rs:137
↓ 4 callers
Method
cloneself
遍历地址空间,将其中的地址映射添加进自己的地址空间中,重新分配物理页并拷贝所有数据及代码
kernel-vm/src/space/mod.rs:98
↓ 4 callers
Method
find_next
找到下一个进程
task-manage/src/proc_manage.rs:33
↓ 4 callers
Method
re_enque
某个线程重新入队
task-manage/src/thread_manager.rs:101
↓ 4 callers
Method
read_at
Read data from current inode
easy-fs/src/vfs.rs:159
↓ 4 callers
Method
root_ppn
(&self)
ch8/src/main.rs:269
↓ 4 callers
Method
set_manager
设置 manager
task-manage/src/proc_manage.rs:46
↓ 4 callers
Function
sigreturn
()
syscall/src/user.rs:121
↓ 4 callers
Method
v_to_p
(&self, ptr: NonNull<T>)
ch6/src/main.rs:254
↓ 3 callers
Method
add
添加 id 进入调度队列
ch5/src/processor.rs:45
↓ 3 callers
Method
add
添加 id 进入调度队列
ch7/src/processor.rs:45
↓ 3 callers
Method
allocate
(&mut self, len: usize, flags: &mut VmFlags<Sv39>)
ch6/src/main.rs:264
↓ 3 callers
Method
ans
(self)
kernel-vm/src/space/mapper.rs:28
↓ 3 callers
Function
close
(fd: usize)
syscall/src/user.rs:38
↓ 3 callers
Method
data_blocks
Return block number correspond to size.
easy-fs/src/layout.rs:111
↓ 3 callers
Method
delete
(&mut self, id: ProcId)
ch6/src/processor.rs:38
↓ 3 callers
Method
get_task
(&mut self, id: ProcId)
task-manage/src/proc_manage.rs:92
↓ 3 callers
Method
initialize
Initialize a super block
easy-fs/src/layout.rs:48
↓ 3 callers
Method
is_valid
Check if a super block is valid using efs magic
easy-fs/src/layout.rs:66
↓ 3 callers
Method
make
(&self)
xtask/src/main.rs:70
↓ 3 callers
Method
modify_disk_inode
Call a function over a disk inode to modify it
easy-fs/src/vfs.rs:41
↓ 3 callers
Function
mutex_lock
(mutex_id: usize)
syscall/src/user.rs:168
↓ 3 callers
Function
mutex_unlock
(mutex_id: usize)
syscall/src/user.rs:173
↓ 3 callers
Method
read_disk_inode
Call a function over a disk inode to read it
easy-fs/src/vfs.rs:34
↓ 3 callers
Method
read_write
Do not check validity for simplicity Return (readable, writable)
easy-fs/src/file.rs:48
↓ 3 callers
Method
readable
(&self)
easy-fs/src/file.rs:96
↓ 3 callers
Method
root_ppn
(&self)
ch6/src/main.rs:239
↓ 3 callers
Method
root_ppn
(&self)
ch5/src/main.rs:224
↓ 3 callers
Method
root_ppn
(&self)
ch7/src/main.rs:254
next →
1–100 of 637, ranked by callers