Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YatSenOS/YatSenOS-Tutorial-Volume-2
/ functions
Functions
400 in github.com/YatSenOS/YatSenOS-Tutorial-Volume-2
⨍
Functions
400
◇
Types & classes
78
↓ 1 callers
Method
humanized_size
(&self)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:63
↓ 1 callers
Method
icr
(&self)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:77
↓ 1 callers
Method
id
(&self)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:68
↓ 1 callers
Method
identify_drive
Identifies the drive at the given `drive` number (0 or 1). reference: https://wiki.osdev.org/ATA_PIO_Mode#IDENTIFY_command
src/0x06/crates/kernel/src/drivers/ata/bus.rs:170
↓ 1 callers
Function
inc_counter
Increment the counter this function simulate a critical section by delay DO NOT MODIFY THIS FUNCTION
src/0x05/crates/app/counter/src/main.rs:49
↓ 1 callers
Function
info
(step: str, content: str)
src/0x00/ysos.py:32
↓ 1 callers
Function
init
init process manager
src/0x03/crates/kernel/src/proc/mod.rs:31
↓ 1 callers
Function
init
NOTE: export mod user / call in the kernel init / after frame allocator
src/0x04/crates/kernel/src/memory/user.rs:18
↓ 1 callers
Method
init
Create a FrameAllocator from the passed memory map. This function is unsafe because the caller must guarantee that the passed memory map is valid. Th
src/0x02/crates/kernel/src/memory/frames.rs:31
↓ 1 callers
Method
init
Initializes the serial port.
src/0x01/crates/kernel/src/drivers/uart16550.rs:12
↓ 1 callers
Method
init_kernel_vm
(mut self)
src/0x03/crates/kernel/src/proc/vm/mod.rs:34
↓ 1 callers
Method
init_proc_stack
(&mut self, pid: ProcessId)
src/0x03/crates/kernel/src/proc/vm/mod.rs:40
↓ 1 callers
Function
init_user_heap
()
src/0x04/crates/kernel/src/memory/user.rs:23
↓ 1 callers
Method
is_on_stack
(&self, addr: VirtAddr)
src/0x03/crates/kernel/src/proc/vm/stack.rs:90
↓ 1 callers
Function
jump_to_entry
(bootinfo: *const BootInfo, stacktop: u64)
src/0x01/crates/boot/src/lib.rs:62
↓ 1 callers
Method
kill
(&self, pid: ProcessId, ret: isize)
src/0x03/crates/kernel/src/proc/manager.rs:122
↓ 1 callers
Method
kill_current
(&self, ret: isize)
src/0x03/crates/kernel/src/proc/manager.rs:112
↓ 1 callers
Function
load_elf
Load & Map ELF file load segments in ELF file to new frames and set page table
src/0x01/crates/elf/src/lib.rs:86
↓ 1 callers
Method
load_elf_code
(&mut self, elf: &ElfFile, mapper: MapperRef, alloc: FrameAllocatorRef)
src/0x07/crates/kernel/src/proc/vm/mod.rs:97
↓ 1 callers
Function
load_segment
Load & Map ELF segment load segment to new frame and set page table
src/0x01/crates/elf/src/lib.rs:108
↓ 1 callers
Function
main
()
src/0x00/ysos.py:129
↓ 1 callers
Function
main
()
src/0x01/ysos.py:275
↓ 1 callers
Function
map_range
Map a range of memory allocate frames and map to specified address (R/W)
src/0x01/crates/elf/src/lib.rs:42
↓ 1 callers
Method
maxintr
(&mut self)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:89
↓ 1 callers
Method
memory_usage
(&self)
src/0x03/crates/kernel/src/proc/vm/mod.rs:53
↓ 1 callers
Method
memory_usage
(&self)
src/0x07/crates/kernel/src/proc/vm/mod.rs:130
↓ 1 callers
Method
memory_usage
(&self)
src/0x07/crates/kernel/src/proc/vm/heap.rs:86
↓ 1 callers
Function
new_stack_test_thread
()
src/0x03/crates/kernel/src/utils/mod.rs:40
↓ 1 callers
Function
new_test_thread
(id: &str)
src/0x03/crates/kernel/src/utils/mod.rs:29
↓ 1 callers
Function
open_root
Open root directory
src/0x01/crates/boot/src/fs.rs:10
↓ 1 callers
Method
parent
(&self)
src/0x03/crates/kernel/src/proc/process.rs:152
↓ 1 callers
Method
partitions
(&self)
src/0x06/crates/storage/src/partition/mbr/mod.rs:60
↓ 1 callers
Method
pid
(&self)
src/0x03/crates/kernel/src/proc/process.rs:28
↓ 1 callers
Function
print_process_list
()
src/0x03/crates/kernel/src/proc/mod.rs:59
↓ 1 callers
Method
print_process_list
(&self)
src/0x03/crates/kernel/src/proc/manager.rs:142
↓ 1 callers
Function
print_processors
()
src/0x03/crates/kernel/src/proc/processor.rs:25
↓ 1 callers
Method
process
(&mut self, key: &str, value: &'a str)
src/0x01/crates/boot/src/config.rs:51
↓ 1 callers
Function
process_exit
(ret: isize)
src/0x03/crates/kernel/src/proc/mod.rs:71
↓ 1 callers
Method
read_data
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:63
↓ 1 callers
Method
read_dir
(&self, path: &str)
src/0x06/crates/storage/src/common/mount.rs:26
↓ 1 callers
Function
read_frame_pointer
()
src/0x01/crates/kernel/src/utils/macros.rs:166
↓ 1 callers
Method
send
Sends a byte on the serial port.
src/0x01/crates/kernel/src/drivers/uart16550.rs:17
↓ 1 callers
Function
set_entry
(entry: usize)
src/0x01/crates/boot/src/lib.rs:78
↓ 1 callers
Method
set_env
(&mut self, key: &str, val: &str)
src/0x03/crates/kernel/src/proc/data.rs:30
↓ 1 callers
Method
set_pid
(&self, pid: ProcessId)
src/0x03/crates/kernel/src/proc/processor.rs:64
↓ 1 callers
Method
set_rax
(&mut self, value: usize)
src/0x03/crates/kernel/src/proc/context.rs:31
↓ 1 callers
Function
spawn_init
()
src/0x04/crates/kernel/src/main.rs:17
↓ 1 callers
Method
spawn_kernel_thread
( &self, entry: VirtAddr, name: String, proc_data: Option<ProcessData>, )
src/0x03/crates/kernel/src/proc/manager.rs:89
↓ 1 callers
Function
sys_allocate
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:40
↓ 1 callers
Function
sys_deallocate
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:57
↓ 1 callers
Function
sys_get_pid
()
src/0x04/crates/lib/src/syscall.rs:67
↓ 1 callers
Function
sys_stat
()
src/0x04/crates/lib/src/syscall.rs:47
↓ 1 callers
Function
sys_wait_pid
(pid: u16)
src/0x04/crates/lib/src/syscall.rs:34
↓ 1 callers
Method
version
(&self)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:73
↓ 1 callers
Method
write_str
(&mut self, s: &str)
src/0x01/crates/kernel/src/drivers/uart16550.rs:29
Function
_err
(args: Arguments)
src/0x04/crates/lib/src/lib.rs:52
Function
_err
(args: Arguments)
src/0x07/crates/lib/src/lib.rs:60
Function
_print
(args: Arguments)
src/0x04/crates/lib/src/lib.rs:47
Function
_print
(args: Arguments)
src/0x07/crates/lib/src/lib.rs:55
Function
ack
()
src/0x02/crates/kernel/src/interrupt/mod.rs:42
Method
acquire
(&self)
src/0x05/crates/lib/src/sync.rs:19
Method
add_assign
(&mut self, rhs: u32)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:186
Method
add_proc
(&self, pid: ProcessId, proc: Arc<Process>)
src/0x03/crates/kernel/src/proc/manager.rs:55
Method
alloc
(&self, layout: core::alloc::Layout)
src/0x04/crates/lib/src/allocator.rs:4
Method
alloc
(&self, layout: core::alloc::Layout)
src/0x07/crates/lib/src/allocator/kernel.rs:4
Function
alloc_error_handler
(layout: alloc::alloc::Layout)
src/0x04/crates/lib/src/allocator.rs:17
Function
alloc_error_handler
(layout: alloc::alloc::Layout)
src/0x02/crates/kernel/src/memory/allocator.rs:39
Function
alloc_error_handler
(layout: alloc::alloc::Layout)
src/0x07/crates/lib/src/allocator/brk.rs:23
Function
alloc_error_handler
(layout: alloc::alloc::Layout)
src/0x07/crates/lib/src/allocator/kernel.rs:17
Method
allocate_frame
(&mut self)
src/0x02/crates/kernel/src/memory/frames.rs:49
Method
append_file
Opens the file at this path for appending
src/0x06/crates/storage/src/common/filesystem.rs:30
Method
as_meta
(&self)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:76
Method
as_mut
(&mut self)
src/0x06/crates/storage/src/common/block.rs:50
Method
basename
(&self)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:105
Method
block_count
(&self)
src/0x06/crates/storage/src/partition/mod.rs:67
Method
brk
(&self, addr: Option<VirtAddr>)
src/0x07/crates/kernel/src/proc/vm/mod.rs:80
Method
brk
( &self, new_end: Option<VirtAddr>, mapper: MapperRef, alloc: FrameAllocatorRe
src/0x07/crates/kernel/src/proc/vm/heap.rs:49
Method
clean_up
(&mut self)
src/0x07/crates/kernel/src/proc/vm/mod.rs:134
Method
clean_up
( &self, mapper: MapperRef, dealloc: FrameAllocatorRef, )
src/0x07/crates/kernel/src/proc/vm/heap.rs:70
Method
clone_level_4
Create a new page table object based on current page table.
src/0x03/crates/kernel/src/proc/paging.rs:36
Method
close
(&mut self, fd: u8)
src/0x04/crates/kernel/src/utils/resource.rs:38
Method
cluster_to_sector
(&self, cluster: &Cluster)
src/0x06/crates/storage/src/fs/fat16/impls.rs:29
Method
copy_file
Copies the src path to the destination path within the same filesystem
src/0x06/crates/storage/src/common/filesystem.rs:45
Method
cpu_init
Initialize the xAPIC for the current CPU.
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:42
Method
create_file
Creates a file at this path for writing
src/0x06/crates/storage/src/common/filesystem.rs:25
Method
current
(&self)
src/0x03/crates/kernel/src/proc/manager.rs:64
Method
dealloc
(&self, ptr: *mut u8, layout: core::alloc::Layout)
src/0x04/crates/lib/src/allocator.rs:7
Method
dealloc
(&self, ptr: *mut u8, layout: core::alloc::Layout)
src/0x07/crates/lib/src/allocator/kernel.rs:7
Method
default
()
src/0x06/crates/storage/src/common/block.rs:56
Method
default
()
src/0x03/crates/kernel/src/proc/pid.rs:13
Method
default
()
src/0x03/crates/kernel/src/proc/data.rs:14
Method
default
()
src/0x03/crates/kernel/src/proc/context.rs:60
Method
default
()
src/0x04/crates/kernel/src/utils/resource.rs:18
Method
default
()
src/0x05/crates/kernel/src/proc/sync.rs:70
Method
deref
(&self)
src/0x06/crates/storage/src/common/filehandle.rs:22
Method
deref
For `&block[x..y] -> &[u8]`
src/0x06/crates/storage/src/common/block.rs:38
Method
deref
(&self)
src/0x03/crates/kernel/src/proc/process.rs:168
Method
deref
(&self)
src/0x03/crates/kernel/src/proc/context.rs:78
Method
deref_mut
(&mut self)
src/0x06/crates/storage/src/common/filehandle.rs:28
Method
deref_mut
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:184
← previous
next →
101–200 of 400, ranked by callers