Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ functions
Functions
600 in github.com/chyyuu/os_kernel_lab
⨍
Functions
600
◇
Types & classes
104
↓ 3 callers
Method
remove_area_with_start_vpn
(&mut self, start_vpn: VirtPageNum)
os/src/mm/memory_set.rs:63
↓ 3 callers
Function
sbi_call
(which: usize, arg0: usize, arg1: usize, arg2: usize)
os/src/sbi.rs:16
↓ 3 callers
Function
set_next_trigger
()
os/src/timer.rs:23
↓ 3 callers
Function
sys_waitpid
(pid: isize, exit_code: *mut i32)
user/src/syscall.rs:110
↓ 3 callers
Method
t_yield
(&mut self)
user/src/bin/stackful_coroutine.rs:133
↓ 3 callers
Function
take_current_task
()
os/src/task/processor.rs:59
↓ 3 callers
Function
translated_str
Load a string from other address spaces into kernel space without an end `\0`.
os/src/mm/page_table.rs:163
↓ 3 callers
Function
ustack_bottom_from_tid
(ustack_base: usize, tid: usize)
os/src/task/id.rs:122
↓ 3 callers
Method
ustack_top
(&self)
os/src/task/id.rs:215
↓ 2 callers
Method
addr_of_offset
(&self, offset: usize)
easy-fs/src/block_cache.rs:30
↓ 2 callers
Method
alloc
(&self, block_device: &Arc<dyn BlockDevice>)
easy-fs/src/bitmap.rs:28
↓ 2 callers
Method
alloc_user_res
(&self)
os/src/task/id.rs:144
↓ 2 callers
Method
available_read
(&self)
os/src/fs/pipe.rs:78
↓ 2 callers
Method
block
(&self)
user/src/bin/barrier_condvar.rs:29
↓ 2 callers
Function
block_current_task
This function must be followed by a schedule
os/src/task/mod.rs:48
↓ 2 callers
Method
ceil
(&self)
os/src/mm/address.rs:103
↓ 2 callers
Function
check_timer
()
os/src/timer.rs:62
↓ 2 callers
Method
claim_comp_ptr_of_hart_with_priority
( &self, hart_id: usize, target_priority: IntrTargetPriority, )
os/src/drivers/plic.rs:48
↓ 2 callers
Function
condvar_wait
(condvar_id: usize, mutex_id: usize)
user/src/sync.rs:30
↓ 2 callers
Function
current_add_signal
(signal: SignalFlags)
os/src/task/mod.rs:154
↓ 2 callers
Function
current_trap_cx
()
os/src/task/processor.rs:76
↓ 2 callers
Method
dealloc
(&mut self, id: usize)
os/src/task/id.rs:31
↓ 2 callers
Method
enable_ptr
( &self, hart_id: usize, target_priority: IntrTargetPriority, intr_source_id:
os/src/drivers/plic.rs:27
↓ 2 callers
Method
exit
Exit qemu with specified exit code.
os/src/boards/qemu.rs:100
↓ 2 callers
Function
exit_code_encode
Encode the exit code using EXIT_FAILURE_FLAG.
os/src/boards/qemu.rs:87
↓ 2 callers
Function
exit_current_and_run_next
(exit_code: i32)
os/src/task/mod.rs:61
↓ 2 callers
Method
exit_failure
(&self)
os/src/boards/qemu.rs:127
↓ 2 callers
Method
find_inode_id
(&self, name: &str, disk_inode: &DiskInode)
easy-fs/src/vfs.rs:45
↓ 2 callers
Function
fork_child
(cur: &str, branch: char)
user/src/bin/forktree.rs:11
↓ 2 callers
Function
fork_tree
(cur: &str)
user/src/bin/forktree.rs:26
↓ 2 callers
Function
frame_dealloc
(ppn: PhysPageNum)
os/src/mm/frame_allocator.rs:107
↓ 2 callers
Function
framebuffer
()
user/src/io.rs:12
↓ 2 callers
Method
get_block_id
(&self, inner_id: u32, block_device: &Arc<dyn BlockDevice>)
easy-fs/src/layout.rs:123
↓ 2 callers
Method
get_end
(&self)
os/src/mm/address.rs:218
↓ 2 callers
Method
get_idle_task_cx_ptr
(&mut self)
os/src/task/processor.rs:21
↓ 2 callers
Method
get_mut
(&self)
os/src/mm/address.rs:166
↓ 2 callers
Method
get_pixel
(&self)
user/src/bin/gui_snake.rs:161
↓ 2 callers
Method
get_pte_array
(&self)
os/src/mm/address.rs:171
↓ 2 callers
Method
get_task
(&self, tid: usize)
os/src/task/process.rs:64
↓ 2 callers
Method
increase_size
( &self, new_size: u32, disk_inode: &mut DiskInode, fs: &mut MutexGuard<EasyFi
easy-fs/src/vfs.rs:77
↓ 2 callers
Method
indexes
(&self)
os/src/mm/address.rs:151
↓ 2 callers
Function
init
()
os/src/mm/mod.rs:18
↓ 2 callers
Method
init
This is cheating a bit, but we need a pointer to our Runtime stored so we can call yield on it even if we don't have a reference to it.
user/src/bin/stackful_coroutine.rs:100
↓ 2 callers
Function
insert_into_pid2process
(pid: usize, process: Arc<ProcessControlBlock>)
os/src/task/manager.rs:53
↓ 2 callers
Function
irq_handler
()
os/src/boards/qemu.rs:43
↓ 2 callers
Method
is_valid
(&self)
os/src/mm/page_table.rs:41
↓ 2 callers
Function
kernel_token
()
os/src/mm/memory_set.rs:32
↓ 2 callers
Function
kill
(pid: usize, signal: i32)
user/src/task.rs:59
↓ 2 callers
Method
map
(&mut self, vpn: VirtPageNum, ppn: PhysPageNum, flags: PTEFlags)
os/src/mm/page_table.rs:113
↓ 2 callers
Method
name
(&self)
easy-fs/src/layout.rs:402
↓ 2 callers
Method
open
(block_device: Arc<dyn BlockDevice>)
easy-fs/src/efs.rs:81
↓ 2 callers
Function
open_file
(name: &str, flags: OpenFlags)
os/src/fs/inode.rs:85
↓ 2 callers
Method
paint
(&mut self)
user/src/bin/gui_uart.rs:88
↓ 2 callers
Method
paint
(&mut self)
user/src/bin/gui_rect.rs:29
↓ 2 callers
Function
pid_alloc
()
os/src/task/id.rs:53
↓ 2 callers
Method
priority_ptr
(&self, intr_source_id: usize)
os/src/drivers/plic.rs:19
↓ 2 callers
Method
read_end
(&mut self)
os/src/drivers/chardev/ns16550a.rs:78
↓ 2 callers
Method
read_event
(&self)
os/src/drivers/input/mod.rs:53
↓ 2 callers
Method
replace
(&mut self, iter_source: &Snake<T, MAX_SIZE>)
user/src/bin/gui_snake.rs:140
↓ 2 callers
Function
run_tests
(tests: &[(&str, &str, &str, &str, i32)])
user/src/bin/usertests.rs:61
↓ 2 callers
Function
set_kernel_trap_entry
()
os/src/trap/mod.rs:23
↓ 2 callers
Method
set_threshold
( &mut self, hart_id: usize, target_priority: IntrTargetPriority, threshold: u
os/src/drivers/plic.rs:92
↓ 2 callers
Method
sync
(&mut self)
easy-fs/src/block_cache.rs:63
↓ 2 callers
Function
sys_mutex_create
(blocking: bool)
user/src/syscall.rs:126
↓ 2 callers
Method
threshold_ptr_of_hart_with_priority
( &self, hart_id: usize, target_priority: IntrTargetPriority, )
os/src/drivers/plic.rs:40
↓ 2 callers
Function
translated_byte_buffer
(token: usize, ptr: *const u8, len: usize)
os/src/mm/page_table.rs:140
↓ 2 callers
Method
trap_cx_ppn
(&self)
os/src/task/id.rs:201
↓ 2 callers
Method
unlock
(&self)
os/src/sync/mutex.rs:39
↓ 2 callers
Method
unmap
(&mut self, page_table: &mut PageTable)
os/src/mm/memory_set.rs:312
↓ 2 callers
Method
waiter
(&'a mut self)
user/src/bin/stackless_coroutine.rs:29
↓ 2 callers
Function
waitpid
(pid: usize, exit_code: &mut i32)
user/src/task.rs:33
↓ 1 callers
Method
activate
(&self)
os/src/mm/memory_set.rs:234
↓ 1 callers
Function
add_initproc
()
os/src/task/mod.rs:144
↓ 1 callers
Function
add_timer
(expire_ms: usize, task: Arc<TaskControlBlock>)
os/src/timer.rs:57
↓ 1 callers
Method
all_write_ends_closed
(&self)
os/src/fs/pipe.rs:94
↓ 1 callers
Method
alloc
(&mut self)
os/src/mm/frame_allocator.rs:62
↓ 1 callers
Method
alloc_data
Return a block ID not ID in the data area.
easy-fs/src/efs.rs:130
↓ 1 callers
Method
alloc_inode
(&mut self)
easy-fs/src/efs.rs:125
↓ 1 callers
Method
alloc_tid
(&mut self)
os/src/task/id.rs:182
↓ 1 callers
Method
available_write
(&self)
os/src/fs/pipe.rs:87
↓ 1 callers
Function
backtrace
()
os/src/lang_items.rs:24
↓ 1 callers
Method
blocks_num_needed
(&self, new_size: u32)
easy-fs/src/layout.rs:119
↓ 1 callers
Method
check_error
(&self)
os/src/task/signal.rs:14
↓ 1 callers
Function
check_signals_of_current
()
os/src/task/mod.rs:148
↓ 1 callers
Method
claim
(&mut self, hart_id: usize, target_priority: IntrTargetPriority)
os/src/drivers/plic.rs:109
↓ 1 callers
Function
clear_bss
()
os/src/main.rs:35
↓ 1 callers
Method
clear_size
Clear size to zero and return blocks that should be deallocated. We will clear the block contents to zero later.
easy-fs/src/layout.rs:223
↓ 1 callers
Method
cmp
(&self, other: &Self)
os/src/timer.rs:47
↓ 1 callers
Method
complete
( &mut self, hart_id: usize, target_priority: IntrTargetPriority, completion:
os/src/drivers/plic.rs:113
↓ 1 callers
Function
condvar_create
()
user/src/sync.rs:24
↓ 1 callers
Method
copy_data
data: start-aligned but maybe with shorter length assume that all frames were cleared before
os/src/mm/memory_set.rs:319
↓ 1 callers
Function
create_waker
()
user/src/bin/stackless_coroutine.rs:92
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_mutex_blocking.rs:17
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_simple_yield.rs:18
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_peterson_spin.rs:22
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder.rs:16
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_atomic.rs:18
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_peterson_yield.rs:22
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_mutex_spin.rs:17
↓ 1 callers
Function
critical_section
(t: &mut usize)
user/src/bin/adder_simple_spin.rs:18
← previous
next →
101–200 of 600, ranked by callers