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
↓ 11 callers
Function
execute_command
(cmd: list, workdir: str | None = None, shell: bool = False)
src/0x01/ysos.py:100
↓ 10 callers
Method
read
(&self)
src/0x03/crates/kernel/src/proc/process.rs:38
↓ 9 callers
Method
read
(&mut self, buf: &mut [u8])
src/0x06/crates/storage/src/fs/fat16/file.rs:35
↓ 9 callers
Method
size
()
src/0x06/crates/storage/src/common/block.rs:11
↓ 7 callers
Method
as_ref
(&self)
src/0x03/crates/kernel/src/proc/context.rs:26
↓ 7 callers
Method
mapper
Get the page table object by Cr3 register value.
src/0x03/crates/kernel/src/proc/paging.rs:64
↓ 7 callers
Method
read
(&self, reg: u32)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:23
↓ 6 callers
Method
exists
(&self, path: &str)
src/0x06/crates/storage/src/common/mount.rs:41
↓ 6 callers
Function
get_exe
(name: str)
src/0x01/ysos.py:77
↓ 6 callers
Function
info
(step: str, content: str)
src/0x01/ysos.py:64
↓ 5 callers
Method
iter
(&self)
src/0x01/crates/kernel/src/utils/macros.rs:160
↓ 5 callers
Method
load
Load the page table to Cr3 register.
src/0x03/crates/kernel/src/proc/paging.rs:59
↓ 5 callers
Function
physical_to_virtual
(addr: u64)
src/0x02/crates/kernel/src/memory/address.rs:14
↓ 5 callers
Method
status
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:91
↓ 5 callers
Method
write
(&self)
src/0x03/crates/kernel/src/proc/process.rs:33
↓ 4 callers
Method
allocate_frame
(&mut self)
src/0x01/crates/boot/src/allocator.rs:8
↓ 4 callers
Method
as_mut
(&mut self)
src/0x03/crates/kernel/src/proc/context.rs:21
↓ 4 callers
Function
copy_to_esp
(src: str, dst: str)
src/0x01/ysos.py:177
↓ 4 callers
Method
debug
Log debug information about the bus
src/0x06/crates/kernel/src/drivers/ata/bus.rs:129
↓ 4 callers
Method
flush
(&self)
src/0x01/crates/kernel/src/utils/logger.rs:23
↓ 4 callers
Function
get_process_manager
()
src/0x03/crates/kernel/src/proc/manager.rs:23
↓ 4 callers
Function
humanized_size
(size: u64)
src/0x02/crates/kernel/src/utils/mod.rs:25
↓ 4 callers
Method
insert
(&mut self, key: u32, value: usize)
src/0x05/crates/kernel/src/proc/sync.rs:78
↓ 4 callers
Method
open
(&mut self, res: Resource)
src/0x04/crates/kernel/src/utils/resource.rs:32
↓ 4 callers
Method
trim_mount_point
(&self, path: &'a str)
src/0x06/crates/storage/src/common/mount.rs:19
↓ 4 callers
Method
write
(&self, s: &str)
src/0x04/crates/lib/src/io.rs:33
↓ 3 callers
Method
add
(self, rhs: u32)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:180
↓ 3 callers
Method
as_ref
(&self)
src/0x06/crates/storage/src/common/block.rs:44
↓ 3 callers
Function
debug
(step: str, content: str)
src/0x00/ysos.py:40
↓ 3 callers
Function
debug
(step: str, content: str)
src/0x01/ysos.py:72
↓ 3 callers
Function
delay
()
src/0x05/crates/app/counter/src/main.rs:62
↓ 3 callers
Function
execute_command
(cmd: list, workdir: str = None, shell: bool = False)
src/0x00/ysos.py:45
↓ 3 callers
Method
get_proc
(&self, pid: &ProcessId)
src/0x03/crates/kernel/src/proc/manager.rs:60
↓ 3 callers
Function
humanized_size
(size: u64)
src/0x03/crates/kernel/src/utils/mod.rs:68
↓ 3 callers
Method
init
(&self, value: usize)
src/0x05/crates/lib/src/sync.rs:41
↓ 3 callers
Method
is_active
(&self)
src/0x06/crates/storage/src/partition/mbr/entry.rs:35
↓ 3 callers
Method
is_empty
(&self)
src/0x01/crates/kernel/src/utils/macros.rs:156
↓ 3 callers
Method
is_error
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:111
↓ 3 callers
Method
push
(&mut self, addr: usize)
src/0x01/crates/kernel/src/utils/macros.rs:149
↓ 3 callers
Method
read
(&mut self, reg: u8)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:50
↓ 3 callers
Method
write
(&mut self, reg: u32, value: u32)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:27
↓ 3 callers
Method
write_irq
(&mut self, irq: u8, flags: RedirectionEntry, dest: u8)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:64
↓ 2 callers
Function
build
()
src/0x00/ysos.py:102
↓ 2 callers
Function
build
()
src/0x01/ysos.py:197
↓ 2 callers
Function
current
Returns the current processor based on the current APIC ID
src/0x03/crates/kernel/src/proc/processor.rs:16
↓ 2 callers
Function
get_apps
()
src/0x01/ysos.py:84
↓ 2 callers
Function
get_pid
()
src/0x03/crates/kernel/src/proc/processor.rs:53
↓ 2 callers
Function
humanized_size_impl
(size: u64, short: bool)
src/0x03/crates/kernel/src/utils/mod.rs:77
↓ 2 callers
Function
humanized_size_impl
(size: u64, short: bool)
src/0x02/crates/kernel/src/utils/mod.rs:34
↓ 2 callers
Function
init
(boot_info: &'static BootInfo)
src/0x01/crates/kernel/src/lib.rs:18
↓ 2 callers
Function
is_canonical
(addr: usize)
src/0x01/crates/kernel/src/utils/macros.rs:175
↓ 2 callers
Function
qemu
(output: str = '-nographic', memory: str = '96M', debug: bool = False, intdbg: bool = False)
src/0x00/ysos.py:60
↓ 2 callers
Function
qemu
( output: str = "-nographic", memory: str = "96M", debug: bool = False, intdbg: bool = False,
src/0x01/ysos.py:115
↓ 2 callers
Method
read_block
(&self, offset: usize, block: &mut B)
src/0x06/crates/storage/src/partition/mod.rs:71
↓ 2 callers
Method
remove
(&mut self, key: u32)
src/0x05/crates/kernel/src/proc/sync.rs:85
↓ 2 callers
Function
shutdown
()
src/0x02/crates/kernel/src/lib.rs:55
↓ 2 callers
Function
spawn_kernel_thread
(entry: fn() -> !, name: String, data: Option<ProcessData>)
src/0x03/crates/kernel/src/proc/mod.rs:52
↓ 2 callers
Method
status
(&self)
src/0x03/crates/kernel/src/proc/process.rs:102
↓ 2 callers
Function
stderr
()
src/0x04/crates/lib/src/io.rs:56
↓ 2 callers
Function
stdout
()
src/0x04/crates/lib/src/io.rs:52
↓ 2 callers
Function
sys_allocate
(layout: &core::alloc::Layout)
src/0x04/crates/lib/src/syscall.rs:52
↓ 2 callers
Function
sys_deallocate
(ptr: *mut u8, layout: &core::alloc::Layout)
src/0x04/crates/lib/src/syscall.rs:57
↓ 2 callers
Function
sys_exit
(code: isize)
src/0x04/crates/lib/src/syscall.rs:72
↓ 2 callers
Function
sys_write
(fd: u8, buf: &[u8])
src/0x04/crates/lib/src/syscall.rs:4
↓ 2 callers
Method
total_sectors
(&self)
src/0x06/crates/storage/src/fs/fat16/bpb.rs:30
↓ 2 callers
Method
vm_mut
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:130
↓ 2 callers
Function
wait
(pid: ProcessId)
src/0x03/crates/kernel/src/utils/mod.rs:51
↓ 2 callers
Method
wait
Wait the semaphore (acquire/down/proberen) if the count is 0, then push the process into the wait queue else decrease the count and return Ok
src/0x05/crates/kernel/src/proc/sync.rs:46
↓ 2 callers
Method
write
(&mut self, _buf: &[u8])
src/0x06/crates/storage/src/fs/fat16/file.rs:58
↓ 2 callers
Method
write
(&mut self, reg: u8, data: u32)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:57
↓ 2 callers
Method
write_command
Writes the given command reference: https://wiki.osdev.org/ATA_PIO_Mode#28_bit_PIO
src/0x06/crates/kernel/src/drivers/ata/bus.rs:137
↓ 1 callers
Method
alloc_init_stack
(&self)
src/0x03/crates/kernel/src/proc/process.rs:88
↓ 1 callers
Method
block_count
(&self)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:82
↓ 1 callers
Method
block_size
Returns the block size of the device
src/0x06/crates/storage/src/common/device.rs:18
↓ 1 callers
Function
clean
()
src/0x00/ysos.py:117
↓ 1 callers
Function
clean
()
src/0x01/ysos.py:268
↓ 1 callers
Function
clippy
()
src/0x01/ysos.py:251
↓ 1 callers
Method
clone_page_table
(&self)
src/0x03/crates/kernel/src/proc/process.rs:118
↓ 1 callers
Function
collect_stack_trace
(max_frames: usize)
src/0x01/crates/kernel/src/utils/macros.rs:104
↓ 1 callers
Function
copy_to_esp
(src: str, dst: str)
src/0x00/ysos.py:82
↓ 1 callers
Function
create_frame_iter
(memory_map: &BootMemoryMap)
src/0x02/crates/kernel/src/memory/frames.rs:61
↓ 1 callers
Function
current_page_table
Get current page table from CR3
src/0x01/crates/boot/src/lib.rs:45
↓ 1 callers
Method
cylinder_high
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:80
↓ 1 callers
Method
cylinder_low
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:74
↓ 1 callers
Method
deallocate_frame
(&mut self, _frame: PhysFrame)
src/0x02/crates/kernel/src/memory/frames.rs:56
↓ 1 callers
Function
dispatcher
(context: &mut ProcessContext)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:37
↓ 1 callers
Function
do_counter_inc
()
src/0x05/crates/app/counter/src/main.rs:38
↓ 1 callers
Method
enable
(&mut self, irq: u8, cpuid: u8)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:69
↓ 1 callers
Function
env
(key: &str)
src/0x03/crates/kernel/src/proc/mod.rs:65
↓ 1 callers
Method
eoi
(&mut self)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:90
↓ 1 callers
Function
error
(step: str, content: str)
src/0x00/ysos.py:36
↓ 1 callers
Function
error
(step: str, content: str)
src/0x01/ysos.py:68
↓ 1 callers
Method
filename
(&self)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:46
↓ 1 callers
Function
free_elf
Free ELF files for which the buffer was created using 'load_file'
src/0x01/crates/boot/src/fs.rs:60
↓ 1 callers
Method
get_pid
(&self)
src/0x03/crates/kernel/src/proc/processor.rs:69
↓ 1 callers
Function
get_rootfs
()
src/0x06/crates/kernel/src/drivers/filesystem.rs:10
↓ 1 callers
Function
get_selector
()
src/0x02/crates/kernel/src/memory/gdt.rs:102
↓ 1 callers
Method
grow_stack
( &mut self, addr: VirtAddr, mapper: MapperRef, alloc: FrameAllocatorRef,
src/0x03/crates/kernel/src/proc/vm/stack.rs:98
↓ 1 callers
Method
handle_page_fault
(&mut self, addr: VirtAddr)
src/0x03/crates/kernel/src/proc/vm/mod.rs:46
↓ 1 callers
Function
huge_stack
()
src/0x03/crates/kernel/src/utils/func.rs:23
next →
1–100 of 400, ranked by callers