MCPcopy Create free account

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

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

Methodnew
(inner: T, offset: usize, size: usize)
src/0x06/crates/storage/src/partition/mod.rs:39
Methodnew
Create a new metadata object
src/0x06/crates/storage/src/common/metadata.rs:35
Methodnew
(fs: Box<dyn FileSystem>, mount_point: Box<str>)
src/0x06/crates/storage/src/common/mount.rs:14
Methodnew
(meta: Metadata, file: Box<dyn FileIO + Send>)
src/0x06/crates/storage/src/common/filehandle.rs:14
Methodnew
Create a new block with data
src/0x06/crates/storage/src/common/block.rs:27
Methodnew
(inner: impl BlockDevice<Block512>)
src/0x06/crates/storage/src/fs/fat16/mod.rs:22
Methodnew
(handle: Fat16Handle, entry: DirEntry)
src/0x06/crates/storage/src/fs/fat16/file.rs:20
Methodnew
Attempt to parse a Boot Parameter Block from a 512 byte sector.
src/0x06/crates/storage/src/fs/fat16/bpb.rs:19
Methodnew
Create a new directory from a cluster number.
src/0x06/crates/storage/src/fs/fat16/directory.rs:17
Methodnew
(buf: &[u8])
src/0x06/crates/storage/src/fs/fat16/direntry.rs:98
Methodnew
(inner: impl BlockDevice<Block512>)
src/0x06/crates/storage/src/fs/fat16/impls.rs:4
Methodnew
(id: u8, irq: u8, io_base: u16, ctrl_base: u16)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:39
Methodnew
( name: String, parent: Option<Weak<Process>>, proc_vm: Option<ProcessVm>, pro
src/0x03/crates/kernel/src/proc/process.rs:42
Methodnew
()
src/0x03/crates/kernel/src/proc/processor.rs:42
Methodnew
(addr: PhysFrame, flags: Cr3Flags)
src/0x03/crates/kernel/src/proc/paging.rs:18
Methodnew
()
src/0x03/crates/kernel/src/proc/pid.rs:7
Methodnew
()
src/0x03/crates/kernel/src/proc/data.rs:20
Methodnew
(init: Arc<Process>)
src/0x03/crates/kernel/src/proc/manager.rs:35
Methodnew
(page_table: PageTableContext)
src/0x03/crates/kernel/src/proc/vm/mod.rs:27
Methodnew
(top: Page, size: u64)
src/0x03/crates/kernel/src/proc/vm/stack.rs:44
Methodnew
()
src/0x04/crates/lib/src/io.rs:13
Methodnew
(syscall: Syscall, arg0: usize, arg1: usize, arg2: usize)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:83
Methodnew
()
src/0x05/crates/lib/src/sync.rs:13
Methodnew
(key: u32)
src/0x05/crates/kernel/src/proc/sync.rs:12
Methodnew
(addr: u64)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:35
Methodnew
(addr: u64)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:19
Methodnew
()
src/0x01/crates/kernel/src/utils/macros.rs:142
Methodnew
(port: u16)
src/0x01/crates/kernel/src/drivers/uart16550.rs:7
Methodnew
(page_table: PageTableContext)
src/0x07/crates/kernel/src/proc/vm/mod.rs:45
Methodopen
(bus: u8, drive: u8)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:39
Functionopen_file
Open file at `path`
src/0x01/crates/boot/src/fs.rs:20
Methodopen_file
(&self, path: &str)
src/0x06/crates/storage/src/common/mount.rs:31
Methodopen_file
(&self, path: &str)
src/0x06/crates/storage/src/fs/fat16/impls.rs:55
Functionpage_fault_handler
( stack_frame: InterruptStackFrame, err_code: PageFaultErrorCode, )
src/0x02/crates/kernel/src/interrupt/exceptions.rs:36
Functionpanic
(info: &core::panic::PanicInfo)
src/0x04/crates/lib/src/macros.rs:16
Functionpanic
(info: &core::panic::PanicInfo)
src/0x01/crates/kernel/src/utils/macros.rs:70
Functionpanic
(info: &core::panic::PanicInfo)
src/0x07/crates/lib/src/macros.rs:18
Methodparse
(inner: T)
src/0x06/crates/storage/src/partition/mbr/mod.rs:35
Methodparse
Parse a partition entry from the given data.
src/0x06/crates/storage/src/partition/mbr/entry.rs:14
Methodparse
For Standard 8.3 format reference: https://osdev.org/FAT#Standard_8.3_format
src/0x06/crates/storage/src/fs/fat16/direntry.rs:58
Methodparse
(content: &'a [u8])
src/0x01/crates/boot/src/config.rs:34
Functionparse_datetime
(time: u32)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:81
Functionpartition_test
()
src/0x06/crates/storage/src/partition/mbr/entry.rs:68
Methodpause
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:106
Methodpoll
(&mut self, bit: AtaStatus, val: bool)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:117
Functionprint_internal
(args: Arguments)
src/0x01/crates/kernel/src/utils/macros.rs:60
Methodpush_ready
(&self, pid: ProcessId)
src/0x03/crates/kernel/src/proc/manager.rs:50
Methodread
(&self, fd: u8, buf: &mut [u8])
src/0x04/crates/kernel/src/utils/resource.rs:42
Methodread_all
Read all bytes until EOF in this source, placing them into `buf`.
src/0x06/crates/storage/src/common/io.rs:10
Methodread_block
(&self, offset: usize, block: &mut Block512)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:87
Methodread_dir
(&self, path: &str)
src/0x06/crates/storage/src/fs/fat16/impls.rs:50
Methodread_line
(&self)
src/0x04/crates/lib/src/io.rs:17
Methodread_pio
Reads a block from the given drive and block number into the given buffer. reference: https://wiki.osdev.org/ATA_PIO_Mode#28_bit_PIO reference: https
src/0x06/crates/kernel/src/drivers/ata/bus.rs:196
Methodreceive
Receives a byte on the serial port no wait.
src/0x01/crates/kernel/src/drivers/uart16550.rs:22
Functionregister_idt
(idt: &mut InterruptDescriptorTable)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:15
Functionregister_idt
(idt: &mut InterruptDescriptorTable)
src/0x02/crates/kernel/src/interrupt/exceptions.rs:8
Methodrelease
(&self)
src/0x05/crates/lib/src/sync.rs:23
Methodremove_dir
Removes the directory at this path
src/0x06/crates/storage/src/common/filesystem.rs:40
Methodremove_file
Removes the file at this path
src/0x06/crates/storage/src/common/filesystem.rs:35
Methodrestore
Restore the process's context mark the process as running
src/0x03/crates/kernel/src/proc/process.rs:146
Methodrestore
(&self, context: &mut ProcessContext)
src/0x03/crates/kernel/src/proc/context.rs:41
Methodresume
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:110
Methodroot
()
src/0x06/crates/storage/src/fs/fat16/directory.rs:24
Methodsave
Save the process's context mark the process as ready
src/0x03/crates/kernel/src/proc/process.rs:140
Methodsave
(&mut self, context: &ProcessContext)
src/0x03/crates/kernel/src/proc/context.rs:36
Methodsave_current
(&self, context: &ProcessContext)
src/0x03/crates/kernel/src/proc/manager.rs:69
Methodseek
(&mut self, pos: SeekFrom)
src/0x06/crates/storage/src/fs/fat16/file.rs:51
Methodset_icr
(&mut self, value: u64)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:81
Functionset_pid
(pid: ProcessId)
src/0x03/crates/kernel/src/proc/processor.rs:48
Functionshutdown
()
src/0x01/crates/kernel/src/lib.rs:30
Methodsignal
Signal the semaphore (release/up/verhogen) if the wait queue is not empty, then pop a process from the wait queue else increase the count
src/0x05/crates/kernel/src/proc/sync.rs:56
Functionspawn_process
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:6
Functionstack_test
()
src/0x03/crates/kernel/src/utils/func.rs:37
Functionstdin
()
src/0x04/crates/lib/src/io.rs:48
Methodsupport
If this type APIC is supported
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:37
Functionswitch
(context: &mut ProcessContext)
src/0x03/crates/kernel/src/proc/mod.rs:43
Methodswitch_next
(&self, context: &mut ProcessContext)
src/0x03/crates/kernel/src/proc/manager.rs:75
Functionsys_list_app
()
src/0x04/crates/lib/src/syscall.rs:42
Functionsys_read
(fd: u8, buf: &mut [u8])
src/0x04/crates/lib/src/syscall.rs:19
Functionsys_read
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:26
Functionsys_spawn
(path: &str)
src/0x04/crates/lib/src/syscall.rs:62
Functionsys_write
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:17
Functionsyscall
(mut context: ProcessContext)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:21
Functionsyscall0
(n: Syscall)
src/0x04/crates/syscall/src/macros.rs:7
Functionsyscall1
(n: Syscall, arg0: usize)
src/0x04/crates/syscall/src/macros.rs:20
Functionsyscall2
(n: Syscall, arg0: usize, arg1: usize)
src/0x04/crates/syscall/src/macros.rs:34
Functionsyscall3
(n: Syscall, arg0: usize, arg1: usize, arg2: usize)
src/0x04/crates/syscall/src/macros.rs:48
Functiontest
()
src/0x03/crates/kernel/src/utils/func.rs:1
Functiontest_dir_entry
()
src/0x06/crates/storage/src/fs/fat16/direntry.rs:238
Functiontest_fat16_bpb_1
()
src/0x06/crates/storage/src/fs/fat16/bpb.rs:79
Functiontest_fat16_bpb_2
()
src/0x06/crates/storage/src/fs/fat16/bpb.rs:129
Methodtick
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:98
Methodversion
(&mut self)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:85
Methodvm
(&self)
src/0x03/crates/kernel/src/proc/process.rs:126
Methodwrite
(&self, fd: u8, buf: &[u8])
src/0x04/crates/kernel/src/utils/resource.rs:50
Methodwrite_all
Attempts to write an entire buffer into this writer.
src/0x06/crates/storage/src/common/io.rs:33
Methodwrite_block
(&self, offset: usize, block: &B)
src/0x06/crates/storage/src/partition/mod.rs:80
Methodwrite_block
(&self, offset: usize, block: &Block512)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:94
Methodwrite_data
(&mut self, data: u16)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:68
Methodwrite_pio
Writes a block to the given drive and block number from the given buffer. reference: https://wiki.osdev.org/ATA_PIO_Mode#28_bit_PIO reference: https:
src/0x06/crates/kernel/src/drivers/ata/bus.rs:218
← previous301–400 of 400, ranked by callers