MCPcopy Create free account

hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-2 / functions

Functions400 in github.com/YatSenOS/YatSenOS-Tutorial-Volume-2

↓ 11 callersFunctionexecute_command
(cmd: list, workdir: str | None = None, shell: bool = False)
src/0x01/ysos.py:100
↓ 10 callersMethodread
(&self)
src/0x03/crates/kernel/src/proc/process.rs:38
↓ 9 callersMethodread
(&mut self, buf: &mut [u8])
src/0x06/crates/storage/src/fs/fat16/file.rs:35
↓ 9 callersMethodsize
()
src/0x06/crates/storage/src/common/block.rs:11
↓ 7 callersMethodas_ref
(&self)
src/0x03/crates/kernel/src/proc/context.rs:26
↓ 7 callersMethodmapper
Get the page table object by Cr3 register value.
src/0x03/crates/kernel/src/proc/paging.rs:64
↓ 7 callersMethodread
(&self, reg: u32)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:23
↓ 6 callersMethodexists
(&self, path: &str)
src/0x06/crates/storage/src/common/mount.rs:41
↓ 6 callersFunctionget_exe
(name: str)
src/0x01/ysos.py:77
↓ 6 callersFunctioninfo
(step: str, content: str)
src/0x01/ysos.py:64
↓ 5 callersMethoditer
(&self)
src/0x01/crates/kernel/src/utils/macros.rs:160
↓ 5 callersMethodload
Load the page table to Cr3 register.
src/0x03/crates/kernel/src/proc/paging.rs:59
↓ 5 callersFunctionphysical_to_virtual
(addr: u64)
src/0x02/crates/kernel/src/memory/address.rs:14
↓ 5 callersMethodstatus
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:91
↓ 5 callersMethodwrite
(&self)
src/0x03/crates/kernel/src/proc/process.rs:33
↓ 4 callersMethodallocate_frame
(&mut self)
src/0x01/crates/boot/src/allocator.rs:8
↓ 4 callersMethodas_mut
(&mut self)
src/0x03/crates/kernel/src/proc/context.rs:21
↓ 4 callersFunctioncopy_to_esp
(src: str, dst: str)
src/0x01/ysos.py:177
↓ 4 callersMethoddebug
Log debug information about the bus
src/0x06/crates/kernel/src/drivers/ata/bus.rs:129
↓ 4 callersMethodflush
(&self)
src/0x01/crates/kernel/src/utils/logger.rs:23
↓ 4 callersFunctionget_process_manager
()
src/0x03/crates/kernel/src/proc/manager.rs:23
↓ 4 callersFunctionhumanized_size
(size: u64)
src/0x02/crates/kernel/src/utils/mod.rs:25
↓ 4 callersMethodinsert
(&mut self, key: u32, value: usize)
src/0x05/crates/kernel/src/proc/sync.rs:78
↓ 4 callersMethodopen
(&mut self, res: Resource)
src/0x04/crates/kernel/src/utils/resource.rs:32
↓ 4 callersMethodtrim_mount_point
(&self, path: &'a str)
src/0x06/crates/storage/src/common/mount.rs:19
↓ 4 callersMethodwrite
(&self, s: &str)
src/0x04/crates/lib/src/io.rs:33
↓ 3 callersMethodadd
(self, rhs: u32)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:180
↓ 3 callersMethodas_ref
(&self)
src/0x06/crates/storage/src/common/block.rs:44
↓ 3 callersFunctiondebug
(step: str, content: str)
src/0x00/ysos.py:40
↓ 3 callersFunctiondebug
(step: str, content: str)
src/0x01/ysos.py:72
↓ 3 callersFunctiondelay
()
src/0x05/crates/app/counter/src/main.rs:62
↓ 3 callersFunctionexecute_command
(cmd: list, workdir: str = None, shell: bool = False)
src/0x00/ysos.py:45
↓ 3 callersMethodget_proc
(&self, pid: &ProcessId)
src/0x03/crates/kernel/src/proc/manager.rs:60
↓ 3 callersFunctionhumanized_size
(size: u64)
src/0x03/crates/kernel/src/utils/mod.rs:68
↓ 3 callersMethodinit
(&self, value: usize)
src/0x05/crates/lib/src/sync.rs:41
↓ 3 callersMethodis_active
(&self)
src/0x06/crates/storage/src/partition/mbr/entry.rs:35
↓ 3 callersMethodis_empty
(&self)
src/0x01/crates/kernel/src/utils/macros.rs:156
↓ 3 callersMethodis_error
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:111
↓ 3 callersMethodpush
(&mut self, addr: usize)
src/0x01/crates/kernel/src/utils/macros.rs:149
↓ 3 callersMethodread
(&mut self, reg: u8)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:50
↓ 3 callersMethodwrite
(&mut self, reg: u32, value: u32)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:27
↓ 3 callersMethodwrite_irq
(&mut self, irq: u8, flags: RedirectionEntry, dest: u8)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:64
↓ 2 callersFunctionbuild
()
src/0x00/ysos.py:102
↓ 2 callersFunctionbuild
()
src/0x01/ysos.py:197
↓ 2 callersFunctioncurrent
Returns the current processor based on the current APIC ID
src/0x03/crates/kernel/src/proc/processor.rs:16
↓ 2 callersFunctionget_apps
()
src/0x01/ysos.py:84
↓ 2 callersFunctionget_pid
()
src/0x03/crates/kernel/src/proc/processor.rs:53
↓ 2 callersFunctionhumanized_size_impl
(size: u64, short: bool)
src/0x03/crates/kernel/src/utils/mod.rs:77
↓ 2 callersFunctionhumanized_size_impl
(size: u64, short: bool)
src/0x02/crates/kernel/src/utils/mod.rs:34
↓ 2 callersFunctioninit
(boot_info: &'static BootInfo)
src/0x01/crates/kernel/src/lib.rs:18
↓ 2 callersFunctionis_canonical
(addr: usize)
src/0x01/crates/kernel/src/utils/macros.rs:175
↓ 2 callersFunctionqemu
(output: str = '-nographic', memory: str = '96M', debug: bool = False, intdbg: bool = False)
src/0x00/ysos.py:60
↓ 2 callersFunctionqemu
( output: str = "-nographic", memory: str = "96M", debug: bool = False, intdbg: bool = False,
src/0x01/ysos.py:115
↓ 2 callersMethodread_block
(&self, offset: usize, block: &mut B)
src/0x06/crates/storage/src/partition/mod.rs:71
↓ 2 callersMethodremove
(&mut self, key: u32)
src/0x05/crates/kernel/src/proc/sync.rs:85
↓ 2 callersFunctionshutdown
()
src/0x02/crates/kernel/src/lib.rs:55
↓ 2 callersFunctionspawn_kernel_thread
(entry: fn() -> !, name: String, data: Option<ProcessData>)
src/0x03/crates/kernel/src/proc/mod.rs:52
↓ 2 callersMethodstatus
(&self)
src/0x03/crates/kernel/src/proc/process.rs:102
↓ 2 callersFunctionstderr
()
src/0x04/crates/lib/src/io.rs:56
↓ 2 callersFunctionstdout
()
src/0x04/crates/lib/src/io.rs:52
↓ 2 callersFunctionsys_allocate
(layout: &core::alloc::Layout)
src/0x04/crates/lib/src/syscall.rs:52
↓ 2 callersFunctionsys_deallocate
(ptr: *mut u8, layout: &core::alloc::Layout)
src/0x04/crates/lib/src/syscall.rs:57
↓ 2 callersFunctionsys_exit
(code: isize)
src/0x04/crates/lib/src/syscall.rs:72
↓ 2 callersFunctionsys_write
(fd: u8, buf: &[u8])
src/0x04/crates/lib/src/syscall.rs:4
↓ 2 callersMethodtotal_sectors
(&self)
src/0x06/crates/storage/src/fs/fat16/bpb.rs:30
↓ 2 callersMethodvm_mut
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:130
↓ 2 callersFunctionwait
(pid: ProcessId)
src/0x03/crates/kernel/src/utils/mod.rs:51
↓ 2 callersMethodwait
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 callersMethodwrite
(&mut self, _buf: &[u8])
src/0x06/crates/storage/src/fs/fat16/file.rs:58
↓ 2 callersMethodwrite
(&mut self, reg: u8, data: u32)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:57
↓ 2 callersMethodwrite_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 callersMethodalloc_init_stack
(&self)
src/0x03/crates/kernel/src/proc/process.rs:88
↓ 1 callersMethodblock_count
(&self)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:82
↓ 1 callersMethodblock_size
Returns the block size of the device
src/0x06/crates/storage/src/common/device.rs:18
↓ 1 callersFunctionclean
()
src/0x00/ysos.py:117
↓ 1 callersFunctionclean
()
src/0x01/ysos.py:268
↓ 1 callersFunctionclippy
()
src/0x01/ysos.py:251
↓ 1 callersMethodclone_page_table
(&self)
src/0x03/crates/kernel/src/proc/process.rs:118
↓ 1 callersFunctioncollect_stack_trace
(max_frames: usize)
src/0x01/crates/kernel/src/utils/macros.rs:104
↓ 1 callersFunctioncopy_to_esp
(src: str, dst: str)
src/0x00/ysos.py:82
↓ 1 callersFunctioncreate_frame_iter
(memory_map: &BootMemoryMap)
src/0x02/crates/kernel/src/memory/frames.rs:61
↓ 1 callersFunctioncurrent_page_table
Get current page table from CR3
src/0x01/crates/boot/src/lib.rs:45
↓ 1 callersMethodcylinder_high
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:80
↓ 1 callersMethodcylinder_low
(&mut self)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:74
↓ 1 callersMethoddeallocate_frame
(&mut self, _frame: PhysFrame)
src/0x02/crates/kernel/src/memory/frames.rs:56
↓ 1 callersFunctiondispatcher
(context: &mut ProcessContext)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:37
↓ 1 callersFunctiondo_counter_inc
()
src/0x05/crates/app/counter/src/main.rs:38
↓ 1 callersMethodenable
(&mut self, irq: u8, cpuid: u8)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:69
↓ 1 callersFunctionenv
(key: &str)
src/0x03/crates/kernel/src/proc/mod.rs:65
↓ 1 callersMethodeoi
(&mut self)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:90
↓ 1 callersFunctionerror
(step: str, content: str)
src/0x00/ysos.py:36
↓ 1 callersFunctionerror
(step: str, content: str)
src/0x01/ysos.py:68
↓ 1 callersMethodfilename
(&self)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:46
↓ 1 callersFunctionfree_elf
Free ELF files for which the buffer was created using 'load_file'
src/0x01/crates/boot/src/fs.rs:60
↓ 1 callersMethodget_pid
(&self)
src/0x03/crates/kernel/src/proc/processor.rs:69
↓ 1 callersFunctionget_rootfs
()
src/0x06/crates/kernel/src/drivers/filesystem.rs:10
↓ 1 callersFunctionget_selector
()
src/0x02/crates/kernel/src/memory/gdt.rs:102
↓ 1 callersMethodgrow_stack
( &mut self, addr: VirtAddr, mapper: MapperRef, alloc: FrameAllocatorRef,
src/0x03/crates/kernel/src/proc/vm/stack.rs:98
↓ 1 callersMethodhandle_page_fault
(&mut self, addr: VirtAddr)
src/0x03/crates/kernel/src/proc/vm/mod.rs:46
↓ 1 callersFunctionhuge_stack
()
src/0x03/crates/kernel/src/utils/func.rs:23
next →1–100 of 400, ranked by callers