Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LearningOS/rcore_step_by_step
/ functions
Functions
209 in github.com/LearningOS/rcore_step_by_step
⨍
Functions
209
◇
Types & classes
55
↓ 20 callers
Method
frame
(&self)
os/crate/riscv/src/paging/page_table.rs:75
↓ 18 callers
Method
map
(&mut self, frame: Frame)
os/crate/riscv/src/paging/recursive.rs:119
↓ 13 callers
Method
is_unused
(&self)
os/crate/riscv/src/paging/page_table.rs:60
↓ 12 callers
Method
p2_index
(&self)
os/crate/riscv/src/addr.rs:39
↓ 10 callers
Method
p1_index
(&self)
os/crate/riscv/src/addr.rs:48
↓ 10 callers
Function
read
()
os/crate/riscv/src/register/fcsr.rs:108
↓ 10 callers
Function
sbi_call
(which: usize, arg0: usize, arg1: usize, arg2: usize)
os/src/sbi.rs:4
↓ 10 callers
Method
set
(&mut self, frame: Frame, mut flags: PageTableFlags)
os/crate/riscv/src/paging/page_table.rs:78
↓ 9 callers
Method
flags
(&self)
os/crate/riscv/src/paging/page_table.rs:66
↓ 7 callers
Method
p3_index
(&self)
os/crate/riscv/src/addr.rs:34
↓ 6 callers
Method
p4_index
(&self)
os/crate/riscv/src/addr.rs:29
↓ 5 callers
Method
alloc
(&mut self, alloc_size : usize)
os/crate/buddy-allocator/src/lib.rs:36
↓ 4 callers
Method
as_usize
(&self)
os/crate/riscv/src/addr.rs:24
↓ 4 callers
Function
init
()
os/src/clock.rs:8
↓ 4 callers
Method
zero
Clears all entries.
os/crate/riscv/src/paging/page_table.rs:11
↓ 3 callers
Function
alloc_frames
(size: usize)
os/src/memory/frame_allocator/mod.rs:24
↓ 3 callers
Method
as_mut
(&'a self)
os/crate/riscv/src/addr.rs:110
↓ 3 callers
Method
bits
Returns the contents of the register as raw bits
os/crate/riscv/src/register/misa.rs:20
↓ 3 callers
Method
bits
(&self)
os/crate/riscv/src/register/mie.rs:14
↓ 3 callers
Function
page_fault
(tf: &mut TrapFrame)
os/src/interrupt.rs:32
↓ 3 callers
Method
set_unused
(&mut self)
os/crate/riscv/src/paging/page_table.rs:63
↓ 3 callers
Method
start_address
(&self)
os/crate/riscv/src/addr.rs:196
↓ 2 callers
Function
alloc_frame
()
os/src/memory/frame_allocator/mod.rs:20
↓ 2 callers
Function
clock_set_next_event
()
os/src/clock.rs:17
↓ 2 callers
Method
code
Returns the code field
os/crate/riscv/src/register/mcause.rs:98
↓ 2 callers
Method
code
Returns the code field
os/crate/riscv/src/register/scause.rs:90
↓ 2 callers
Method
create_p1_if_not_exist
(&mut self, p2_index: usize, allocator: &mut impl FrameAllocator)
os/crate/riscv/src/paging/recursive.rs:203
↓ 2 callers
Function
dealloc_frame
(target: Frame)
os/src/memory/frame_allocator/mod.rs:32
↓ 2 callers
Function
dealloc_frames
(target: Frame, size: usize)
os/src/memory/frame_allocator/mod.rs:36
↓ 2 callers
Method
init
(&mut self, level : u8)
os/crate/buddy-allocator/src/lib.rs:24
↓ 2 callers
Method
is_interrupt
(&self)
os/crate/riscv/src/register/mcause.rs:121
↓ 2 callers
Method
is_interrupt
(&self)
os/crate/riscv/src/register/scause.rs:107
↓ 2 callers
Function
log2_down
(x: usize)
os/crate/buddy-allocator/src/lib.rs:127
↓ 2 callers
Method
page_number
(&self)
os/crate/riscv/src/addr.rs:57
↓ 2 callers
Method
ref_entry
(&mut self, page: Page)
os/crate/riscv/src/paging/recursive.rs:376
↓ 2 callers
Method
ref_p1
(&mut self, page: Page)
os/crate/riscv/src/paging/recursive.rs:311
↓ 2 callers
Function
sfence_vma
(asid: usize, addr: usize)
os/crate/riscv/src/asm.rs:60
↓ 2 callers
Method
to_4k_aligned
(&self)
os/crate/riscv/src/addr.rs:69
↓ 2 callers
Function
write
(addr: usize, mode: TrapMode)
os/crate/riscv/src/register/stvec.rs:42
↓ 1 callers
Method
addr
(&self)
os/crate/riscv/src/paging/page_table.rs:72
↓ 1 callers
Method
bits
Returns the contents of the register as raw bits
os/crate/riscv/src/register/mvendorid.rs:13
↓ 1 callers
Function
breakpoint
()
os/src/interrupt.rs:37
↓ 1 callers
Method
cause
(&self)
os/crate/riscv/src/register/mcause.rs:111
↓ 1 callers
Function
console_putchar
(ch: usize)
os/src/sbi.rs:16
↓ 1 callers
Method
dealloc
(&mut self, address : usize, dealloc_size : usize)
os/crate/buddy-allocator/src/lib.rs:76
↓ 1 callers
Function
disable
()
os/crate/riscv/src/interrupt.rs:9
↓ 1 callers
Function
enable
()
os/crate/riscv/src/interrupt.rs:24
↓ 1 callers
Method
fflags
(&self)
os/crate/riscv/src/register/fcsr.rs:84
↓ 1 callers
Method
flags_mut
(&mut self)
os/crate/riscv/src/paging/page_table.rs:83
↓ 1 callers
Function
get_cycle
()
os/src/clock.rs:21
↓ 1 callers
Function
init_heap
()
os/src/memory/mod.rs:19
↓ 1 callers
Function
log2_up
(x: usize)
os/crate/buddy-allocator/src/lib.rs:112
↓ 1 callers
Method
map_to
(&mut self, page: Page, frame: Frame, flags: PageTableFlags, allocator: &mut impl FrameAllocator)
os/crate/riscv/src/paging/recursive.rs:350
↓ 1 callers
Method
mie
(&self)
os/crate/riscv/src/register/mstatus.rs:40
↓ 1 callers
Method
number
(&self)
os/crate/riscv/src/addr.rs:208
↓ 1 callers
Method
ppn
(&self)
os/crate/riscv/src/register/satp.rs:62
↓ 1 callers
Method
ppn
(&self)
os/crate/riscv/src/paging/page_table.rs:69
↓ 1 callers
Method
push_at
(self, stack_top: usize)
os/src/context.rs:71
↓ 1 callers
Function
putchar
(ch: char)
os/src/io.rs:30
↓ 1 callers
Function
puts
(s: &str)
os/src/io.rs:34
↓ 1 callers
Method
set_spp
(&mut self, val: SPP)
os/crate/riscv/src/register/sstatus.rs:122
↓ 1 callers
Function
set_timer
(stime_value: u64)
os/src/sbi.rs:28
↓ 1 callers
Function
super_timer
()
os/src/interrupt.rs:41
↓ 1 callers
Method
switch
(&mut self, target: &mut Context)
os/src/context.rs:42
↓ 1 callers
Method
switch_to
(&mut self, target: &mut Thread)
os/src/process/structs.rs:31
↓ 1 callers
Method
top
(&self)
os/src/process/structs.rs:48
Function
_print
(args: fmt::Arguments)
os/src/io.rs:13
Function
abort
()
os/src/lang_items.rs:10
Method
address
Returns the trap-vector base-address
os/crate/riscv/src/register/stvec.rs:22
Method
address
Returns the trap-vector base-address
os/crate/riscv/src/register/mtvec.rs:22
Method
asid
(&self)
os/crate/riscv/src/register/satp.rs:48
Method
bits
(&self)
os/crate/riscv/src/register/mcause.rs:93
Method
bits
Returns the contents of the register as raw bits
os/crate/riscv/src/register/fcsr.rs:78
Method
bits
Returns the contents of the register as raw bits
os/crate/riscv/src/register/stvec.rs:17
Method
bits
(&self)
os/crate/riscv/src/register/mip.rs:14
Method
bits
(&self)
os/crate/riscv/src/register/sstatus.rs:30
Method
bits
(&self)
os/crate/riscv/src/register/sip.rs:14
Method
bits
Returns the contents of the register as raw bits
os/crate/riscv/src/register/mtvec.rs:17
Method
bits
(&self)
os/crate/riscv/src/register/satp.rs:17
Method
bits
(&self)
os/crate/riscv/src/register/sie.rs:14
Method
bits
(&self)
os/crate/riscv/src/register/scause.rs:85
Method
cause
(&self)
os/crate/riscv/src/register/scause.rs:97
Function
clear_flag
(flag: Flag)
os/crate/riscv/src/register/fcsr.rs:129
Function
clear_flags
()
os/crate/riscv/src/register/fcsr.rs:122
Function
clear_ipi
()
os/src/sbi.rs:40
Function
console_getchar
()
os/src/sbi.rs:20
Method
drop
(&mut self)
os/src/process/structs.rs:54
Method
dz
(&self)
os/crate/riscv/src/register/fcsr.rs:55
Method
flush
Flush the page from the TLB to ensure that the newest mapping is used.
os/crate/riscv/src/paging/recursive.rs:54
Method
fmt
(&self, f: &mut Formatter)
os/crate/riscv/src/paging/page_table.rs:48
Method
frame
(&self)
os/crate/riscv/src/register/satp.rs:76
Function
free
Execute closure `f` in an interrupt-free context. This as also known as a "critical section".
os/crate/riscv/src/interrupt.rs:36
Method
frm
(&self)
os/crate/riscv/src/register/fcsr.rs:90
Method
from
(nr: usize)
os/crate/riscv/src/register/mcause.rs:52
Method
from
(nr: usize)
os/crate/riscv/src/register/scause.rs:49
Method
from_page_table_indices
(p2_index: usize, p1_index: usize, offse
os/crate/riscv/src/addr.rs:74
Method
fs
(&self)
os/crate/riscv/src/register/sstatus.rs:69
Method
has_extension
Returns true when the atomic extension is implemented.
os/crate/riscv/src/register/misa.rs:41
Function
hello_thread
(arg: usize)
os/src/process/mod.rs:11
Method
identity_map
Maps the given frame to the virtual page with the same address.
os/crate/riscv/src/paging/recursive.rs:37
next →
1–100 of 209, ranked by callers