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
Method
new
(inner: T, offset: usize, size: usize)
src/0x06/crates/storage/src/partition/mod.rs:39
Method
new
Create a new metadata object
src/0x06/crates/storage/src/common/metadata.rs:35
Method
new
(fs: Box<dyn FileSystem>, mount_point: Box<str>)
src/0x06/crates/storage/src/common/mount.rs:14
Method
new
(meta: Metadata, file: Box<dyn FileIO + Send>)
src/0x06/crates/storage/src/common/filehandle.rs:14
Method
new
Create a new block with data
src/0x06/crates/storage/src/common/block.rs:27
Method
new
(inner: impl BlockDevice<Block512>)
src/0x06/crates/storage/src/fs/fat16/mod.rs:22
Method
new
(handle: Fat16Handle, entry: DirEntry)
src/0x06/crates/storage/src/fs/fat16/file.rs:20
Method
new
Attempt to parse a Boot Parameter Block from a 512 byte sector.
src/0x06/crates/storage/src/fs/fat16/bpb.rs:19
Method
new
Create a new directory from a cluster number.
src/0x06/crates/storage/src/fs/fat16/directory.rs:17
Method
new
(buf: &[u8])
src/0x06/crates/storage/src/fs/fat16/direntry.rs:98
Method
new
(inner: impl BlockDevice<Block512>)
src/0x06/crates/storage/src/fs/fat16/impls.rs:4
Method
new
(id: u8, irq: u8, io_base: u16, ctrl_base: u16)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:39
Method
new
( name: String, parent: Option<Weak<Process>>, proc_vm: Option<ProcessVm>, pro
src/0x03/crates/kernel/src/proc/process.rs:42
Method
new
()
src/0x03/crates/kernel/src/proc/processor.rs:42
Method
new
(addr: PhysFrame, flags: Cr3Flags)
src/0x03/crates/kernel/src/proc/paging.rs:18
Method
new
()
src/0x03/crates/kernel/src/proc/pid.rs:7
Method
new
()
src/0x03/crates/kernel/src/proc/data.rs:20
Method
new
(init: Arc<Process>)
src/0x03/crates/kernel/src/proc/manager.rs:35
Method
new
(page_table: PageTableContext)
src/0x03/crates/kernel/src/proc/vm/mod.rs:27
Method
new
(top: Page, size: u64)
src/0x03/crates/kernel/src/proc/vm/stack.rs:44
Method
new
()
src/0x04/crates/lib/src/io.rs:13
Method
new
(syscall: Syscall, arg0: usize, arg1: usize, arg2: usize)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:83
Method
new
()
src/0x05/crates/lib/src/sync.rs:13
Method
new
(key: u32)
src/0x05/crates/kernel/src/proc/sync.rs:12
Method
new
(addr: u64)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:35
Method
new
(addr: u64)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:19
Method
new
()
src/0x01/crates/kernel/src/utils/macros.rs:142
Method
new
(port: u16)
src/0x01/crates/kernel/src/drivers/uart16550.rs:7
Method
new
(page_table: PageTableContext)
src/0x07/crates/kernel/src/proc/vm/mod.rs:45
Method
open
(bus: u8, drive: u8)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:39
Function
open_file
Open file at `path`
src/0x01/crates/boot/src/fs.rs:20
Method
open_file
(&self, path: &str)
src/0x06/crates/storage/src/common/mount.rs:31
Method
open_file
(&self, path: &str)
src/0x06/crates/storage/src/fs/fat16/impls.rs:55
Function
page_fault_handler
( stack_frame: InterruptStackFrame, err_code: PageFaultErrorCode, )
src/0x02/crates/kernel/src/interrupt/exceptions.rs:36
Function
panic
(info: &core::panic::PanicInfo)
src/0x04/crates/lib/src/macros.rs:16
Function
panic
(info: &core::panic::PanicInfo)
src/0x01/crates/kernel/src/utils/macros.rs:70
Function
panic
(info: &core::panic::PanicInfo)
src/0x07/crates/lib/src/macros.rs:18
Method
parse
(inner: T)
src/0x06/crates/storage/src/partition/mbr/mod.rs:35
Method
parse
Parse a partition entry from the given data.
src/0x06/crates/storage/src/partition/mbr/entry.rs:14
Method
parse
For Standard 8.3 format reference: https://osdev.org/FAT#Standard_8.3_format
src/0x06/crates/storage/src/fs/fat16/direntry.rs:58
Method
parse
(content: &'a [u8])
src/0x01/crates/boot/src/config.rs:34
Function
parse_datetime
(time: u32)
src/0x06/crates/storage/src/fs/fat16/direntry.rs:81
Function
partition_test
()
src/0x06/crates/storage/src/partition/mbr/entry.rs:68
Method
pause
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:106
Method
poll
(&mut self, bit: AtaStatus, val: bool)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:117
Function
print_internal
(args: Arguments)
src/0x01/crates/kernel/src/utils/macros.rs:60
Method
push_ready
(&self, pid: ProcessId)
src/0x03/crates/kernel/src/proc/manager.rs:50
Method
read
(&self, fd: u8, buf: &mut [u8])
src/0x04/crates/kernel/src/utils/resource.rs:42
Method
read_all
Read all bytes until EOF in this source, placing them into `buf`.
src/0x06/crates/storage/src/common/io.rs:10
Method
read_block
(&self, offset: usize, block: &mut Block512)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:87
Method
read_dir
(&self, path: &str)
src/0x06/crates/storage/src/fs/fat16/impls.rs:50
Method
read_line
(&self)
src/0x04/crates/lib/src/io.rs:17
Method
read_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
Method
receive
Receives a byte on the serial port no wait.
src/0x01/crates/kernel/src/drivers/uart16550.rs:22
Function
register_idt
(idt: &mut InterruptDescriptorTable)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:15
Function
register_idt
(idt: &mut InterruptDescriptorTable)
src/0x02/crates/kernel/src/interrupt/exceptions.rs:8
Method
release
(&self)
src/0x05/crates/lib/src/sync.rs:23
Method
remove_dir
Removes the directory at this path
src/0x06/crates/storage/src/common/filesystem.rs:40
Method
remove_file
Removes the file at this path
src/0x06/crates/storage/src/common/filesystem.rs:35
Method
restore
Restore the process's context mark the process as running
src/0x03/crates/kernel/src/proc/process.rs:146
Method
restore
(&self, context: &mut ProcessContext)
src/0x03/crates/kernel/src/proc/context.rs:41
Method
resume
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:110
Method
root
()
src/0x06/crates/storage/src/fs/fat16/directory.rs:24
Method
save
Save the process's context mark the process as ready
src/0x03/crates/kernel/src/proc/process.rs:140
Method
save
(&mut self, context: &ProcessContext)
src/0x03/crates/kernel/src/proc/context.rs:36
Method
save_current
(&self, context: &ProcessContext)
src/0x03/crates/kernel/src/proc/manager.rs:69
Method
seek
(&mut self, pos: SeekFrom)
src/0x06/crates/storage/src/fs/fat16/file.rs:51
Method
set_icr
(&mut self, value: u64)
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:81
Function
set_pid
(pid: ProcessId)
src/0x03/crates/kernel/src/proc/processor.rs:48
Function
shutdown
()
src/0x01/crates/kernel/src/lib.rs:30
Method
signal
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
Function
spawn_process
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:6
Function
stack_test
()
src/0x03/crates/kernel/src/utils/func.rs:37
Function
stdin
()
src/0x04/crates/lib/src/io.rs:48
Method
support
If this type APIC is supported
src/0x02/crates/kernel/src/interrupt/apic/xapic.rs:37
Function
switch
(context: &mut ProcessContext)
src/0x03/crates/kernel/src/proc/mod.rs:43
Method
switch_next
(&self, context: &mut ProcessContext)
src/0x03/crates/kernel/src/proc/manager.rs:75
Function
sys_list_app
()
src/0x04/crates/lib/src/syscall.rs:42
Function
sys_read
(fd: u8, buf: &mut [u8])
src/0x04/crates/lib/src/syscall.rs:19
Function
sys_read
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:26
Function
sys_spawn
(path: &str)
src/0x04/crates/lib/src/syscall.rs:62
Function
sys_write
(args: &SyscallArgs)
src/0x04/crates/kernel/src/interrupt/syscall/service.rs:17
Function
syscall
(mut context: ProcessContext)
src/0x04/crates/kernel/src/interrupt/syscall/mod.rs:21
Function
syscall0
(n: Syscall)
src/0x04/crates/syscall/src/macros.rs:7
Function
syscall1
(n: Syscall, arg0: usize)
src/0x04/crates/syscall/src/macros.rs:20
Function
syscall2
(n: Syscall, arg0: usize, arg1: usize)
src/0x04/crates/syscall/src/macros.rs:34
Function
syscall3
(n: Syscall, arg0: usize, arg1: usize, arg2: usize)
src/0x04/crates/syscall/src/macros.rs:48
Function
test
()
src/0x03/crates/kernel/src/utils/func.rs:1
Function
test_dir_entry
()
src/0x06/crates/storage/src/fs/fat16/direntry.rs:238
Function
test_fat16_bpb_1
()
src/0x06/crates/storage/src/fs/fat16/bpb.rs:79
Function
test_fat16_bpb_2
()
src/0x06/crates/storage/src/fs/fat16/bpb.rs:129
Method
tick
(&mut self)
src/0x03/crates/kernel/src/proc/process.rs:98
Method
version
(&mut self)
src/0x02/crates/kernel/src/interrupt/apic/ioapic.rs:85
Method
vm
(&self)
src/0x03/crates/kernel/src/proc/process.rs:126
Method
write
(&self, fd: u8, buf: &[u8])
src/0x04/crates/kernel/src/utils/resource.rs:50
Method
write_all
Attempts to write an entire buffer into this writer.
src/0x06/crates/storage/src/common/io.rs:33
Method
write_block
(&self, offset: usize, block: &B)
src/0x06/crates/storage/src/partition/mod.rs:80
Method
write_block
(&self, offset: usize, block: &Block512)
src/0x06/crates/kernel/src/drivers/ata/mod.rs:94
Method
write_data
(&mut self, data: u16)
src/0x06/crates/kernel/src/drivers/ata/bus.rs:68
Method
write_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
← previous
301–400 of 400, ranked by callers