/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | kernel_allocator.rs | 17 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8; in local_alloc() 18 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8; in local_alloc_zeroed() 19 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc() 25 unsafe fn alloc_in_buddy(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in alloc_in_buddy() 47 unsafe fn free_in_buddy(&self, ptr: *mut u8, layout: Layout) { in free_in_buddy() 58 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8 { in local_alloc() 65 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8 { in local_alloc_zeroed() 76 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout) { in local_dealloc() 83 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() 88 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed() [all …]
|
D | slab.rs | 45 pub fn allocate(&mut self, _layout: Layout) -> Option<*mut u8> { in allocate() 52 pub fn free(&mut self, ptr: *mut u8) { in free()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | virtio_impl.rs | 24 ) -> (virtio_drivers::PhysAddr, NonNull<u8>) { in dma_alloc() 54 vaddr: NonNull<u8>, in dma_dealloc() 78 unsafe fn mmio_phys_to_virt(_paddr: virtio_drivers::PhysAddr, _size: usize) -> NonNull<u8> { in mmio_phys_to_virt() 85 buffer: NonNull<[u8]>, in share() 96 _buffer: NonNull<[u8]>, in unshare()
|
/DragonOS-0.1.8/kernel/src/syscall/ |
D | user_access.rs | 43 pub unsafe fn copy_from_user(dst: &mut [u8], src: VirtAddr) -> Result<usize, SystemError> { in copy_from_user() 46 let src: &[u8] = core::slice::from_raw_parts(src.data() as *const u8, dst.len()); in copy_from_user() constant 70 user: *const u8, in check_and_clone_cstr() 119 let str_ptr: *const u8; in check_and_clone_cstr_array() constant 126 str_ptr = dst[0] as *const u8; in check_and_clone_cstr_array() constant
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | mod.rs | 105 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input() 122 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output() 133 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout() 144 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr() 155 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin() 199 fn write_stdin(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_stdin() 231 fn read_output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_output() 264 fn write_output(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_output()
|
D | tty_device.rs | 146 buf: &mut [u8], in read_at() 180 buf: &[u8], in write_at()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci_irq.rs | 187 fn irq_enable(&mut self, enable: bool) -> Result<u8, PciError> { in irq_enable() 209 fn msix_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msix_enable() 240 fn msi_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msi_enable() 276 fn irq_install(&mut self, msg: IrqMsg) -> Result<u8, PciError> { in irq_install() 307 fn msi_install(&mut self, msg: IrqMsg) -> Result<u8, PciError> { in msi_install() 457 fn msix_install(&mut self, msg: IrqMsg) -> Result<u8, PciError> { in msix_install() 533 fn irq_uninstall(&mut self) -> Result<u8, PciError> { in irq_uninstall() 555 fn msi_uninstall(&mut self) -> Result<u8, PciError> { in msi_uninstall() 600 fn msix_uninstall(&mut self) -> Result<u8, PciError> { in msix_uninstall() 651 fn irq_mask(&mut self, irq_index: u16) -> Result<u8, PciError> { in irq_mask() [all …]
|
D | pci.rs | 112 class_code: u8, in get_pci_device_structure_mut() 113 subclass: u8, in get_pci_device_structure_mut() 131 class_code: u8, in get_pci_device_structure() 132 subclass: u8, in get_pci_device_structure() 339 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> { in bar_ioremap() 353 fn msix_capability_offset(&self) -> Option<u8> { in msix_capability_offset() 362 fn msi_capability_offset(&self) -> Option<u8> { in msi_capability_offset() 448 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> { in bar_ioremap() 627 fn map(&mut self) -> Result<u8, PciError> { in map() 722 pub fn capabilities_offset(bus_device_function: BusDeviceFunction) -> Option<u8> { in capabilities_offset() [all …]
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | vec_cursor.rs | 35 pub fn get_mut(&mut self) -> &mut Vec<u8> { in get_mut() 40 pub fn get_ref(&self) -> &Vec<u8> { in get_ref() 45 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() 157 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() 228 pub fn as_slice(&self) -> &[u8] { in as_slice() 233 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice()
|
D | keyboard_parser.rs | 74 scancode: u8, in parse() 104 scancode: u8, in handle_start() 126 scancode: u8, in handle_pause_break() 151 scancode: u8, in handle_func0() 293 scancode: u8, in handle_type3() 370 fn emit(tty: &Arc<TtyDevice>, ch: u8) { in emit() 378 scancode: u8, in handle_prtsc_press() 406 scancode: u8, in handle_prtsc_release()
|
D | elf.rs | 399 data_buf: &'a mut Vec<u8>, in parse_segments() 480 head_buf: &[u8], in load() 773 fn get_bytes(self, range: Range<usize>) -> Result<&'data [u8], elf::ParseError>; in get_bytes() 775 impl<'data> ReadBytesExt<'data> for &'data [u8] { implementation 776 fn get_bytes(self, range: Range<usize>) -> Result<&'data [u8], elf::ParseError> { in get_bytes()
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 57 buf: &mut [u8], in read_at() 216 buf: &[u8], in write_at() 365 ctrl_num: u8, in new() 366 port_num: u8, in new() 445 fn blk_size_log2(&self) -> u8 { in blk_size_log2() 454 buf: &mut [u8], in read_at() 468 buf: &[u8], in write_at()
|
D | ahci_inode.rs | 119 buf: &mut [u8], in read_at() 138 buf: &[u8], in write_at()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/ |
D | syscall.rs | 128 path: *const u8, in rs_do_execve() 129 argv: *const *const u8, in rs_do_execve() 130 envp: *const *const u8, in rs_do_execve()
|
/DragonOS-0.1.8/kernel/src/arch/ |
D | mod.rs | 18 fn write_config(bus_device_function: &BusDeviceFunction, offset: u8, data: u32); in write_config()
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 97 buf: &mut [u8], in read_at() 117 _buf: &[u8], in write_at() 188 pub extern "C" fn ps2_keyboard_parse_keycode(input: u8) { in ps2_keyboard_parse_keycode()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 113 _buf: &mut [u8], in read_at() 124 buf: &[u8], in write_at()
|
D | zero_dev.rs | 113 buf: &mut [u8], in read_at() 132 buf: &[u8], in write_at()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/pci/ |
D | pci.rs | 30 fn write_config(bus_device_function: &BusDeviceFunction, offset: u8, data: u32) { in write_config()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | mod.rs | 80 fn write(&self, buf: &[u8], to: Option<Endpoint>) -> Result<usize, SystemError>; in write() 197 _optval: &[u8], in setsockopt() 271 fn into(self) -> u8 { in into()
|
/DragonOS-0.1.8/kernel/src/driver/timers/rtc/ |
D | rtc.rs | 93 fn read_cmos(addr: u8) -> u8 { in read_cmos()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 79 buf: &mut [u8], in read_at() 158 buf: &[u8], in write_at()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/interrupt/ |
D | ipi.rs | 50 pub fn shorthand(&self) -> u8 { in shorthand()
|
/DragonOS-0.1.8/kernel/src/io/ |
D | device.rs | 64 buf: &mut [u8], in read_at() 78 buf: &[u8], in write_at() 86 fn blk_size_log2(&self) -> u8; in blk_size_log2()
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 109 fn trim_string(&self, data: &mut Vec<u8>) { in trim_string() 201 buf: &mut [u8], in read_status() 369 buf: &mut [u8], in read_at() 416 _buf: &[u8], in write_at()
|