/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | kernel_allocator.rs | 20 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8; in local_alloc() 21 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8; in local_alloc_zeroed() 22 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc() 28 unsafe fn alloc_in_buddy(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in alloc_in_buddy() 50 unsafe fn free_in_buddy(&self, ptr: *mut u8, layout: Layout) { in free_in_buddy() 61 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8 { in local_alloc() 68 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8 { in local_alloc_zeroed() 79 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout) { in local_dealloc() 86 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() 102 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed() [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/interrupt/ |
D | entry.rs | 548 pub unsafe fn set_intr_gate(irq: u32, ist: u8, vaddr: VirtAddr) { in set_intr_gate() 555 pub unsafe fn set_trap_gate(irq: u32, ist: u8, vaddr: VirtAddr) { in set_trap_gate() 562 pub unsafe fn set_system_trap_gate(irq: u32, ist: u8, vaddr: VirtAddr) { in set_system_trap_gate() 578 unsafe fn set_gate(gate: &mut [u64], attr: u8, ist: u8, handler: VirtAddr) { in set_gate()
|
/DragonOS-0.1.9/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.9/kernel/src/arch/x86_64/driver/apic/ |
D | ioapic.rs | 156 unsafe fn write(&mut self, reg: u8, data: u32) { in write() 163 fn write_rte(&mut self, rte_index: u8, vector: u8, flags: RedirectionEntry, dest: u8) { in write_rte() 172 pub fn enable(&mut self, rte_index: u8) { in enable() 178 pub fn disable(&mut self, rte_index: u8) { in disable() 198 rte_index: u8, in install() 199 vector: u8, in install() 200 dest: u8, in install() 236 pub fn irq_vector(&mut self, irq: u8) -> u8 { in irq_vector() 242 pub fn set_irq_vector(&mut self, irq: u8, vector: u8) { in set_irq_vector() 254 pub fn id(&mut self) -> u8 { in id() [all …]
|
D | x2apic.rs | 74 fn version(&self) -> u8 { in version() 82 fn max_lvt_entry(&self) -> u8 { in max_lvt_entry()
|
D | mod.rs | 59 fn version(&self) -> u8; in version() 65 fn max_lvt_entry(&self) -> u8; in max_lvt_entry() 180 pub fn set_vector(&mut self, vector: u8) { in set_vector() 187 pub fn vector(&self) -> u8 { in vector() 534 fn version(&self) -> u8 { in version() 558 fn max_lvt_entry(&self) -> u8 { in max_lvt_entry()
|
/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/ |
D | ntty.rs | 165 pub fn read_at(&self, i: usize) -> u8 { in read_at() 174 buf: &[u8], in receive_buf_common() 175 flags: Option<&[u8]>, in receive_buf_common() 243 buf: &[u8], in receive_buf() 244 flags: Option<&[u8]>, in receive_buf() 289 fn receive_buf_real_raw(&mut self, buf: &[u8], mut count: usize) { in receive_buf_real_raw() 306 fn receive_buf_raw(&mut self, buf: &[u8], flags: Option<&[u8]>, mut count: usize) { in receive_buf_raw() 346 buf: &[u8], in receive_buf_standard() 347 flags: Option<&[u8]>, in receive_buf_standard() 408 pub fn receive_special_char(&mut self, mut c: u8, tty: Arc<TtyCore>, lookahead_done: bool) { in receive_special_char() [all …]
|
D | mod.rs | 31 buf: &mut [u8], in read() 40 buf: &[u8], in write() 58 buf: &[u8], in receive_buf() 59 flags: Option<&[u8]>, in receive_buf() 67 buf: &[u8], in receive_buf2() 68 flags: Option<&[u8]>, in receive_buf2()
|
/DragonOS-0.1.9/kernel/src/driver/pci/ |
D | pci_irq.rs | 224 fn irq_enable(&mut self, enable: bool) -> Result<u8, PciError> { in irq_enable() 246 fn msix_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msix_enable() 277 fn msi_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msi_enable() 313 fn irq_install(&mut self, msg: PciIrqMsg) -> Result<u8, PciError> { in irq_install() 344 fn msi_install(&mut self, msg: PciIrqMsg) -> Result<u8, PciError> { in msi_install() 509 fn msix_install(&mut self, msg: PciIrqMsg) -> Result<u8, PciError> { in msix_install() 598 fn irq_uninstall(&mut self) -> Result<u8, PciError> { in irq_uninstall() 620 fn msi_uninstall(&mut self) -> Result<u8, PciError> { in msi_uninstall() 664 fn msix_uninstall(&mut self) -> Result<u8, PciError> { in msix_uninstall() 714 fn irq_mask(&mut self, irq_index: u16) -> Result<u8, PciError> { in irq_mask() [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | callback.rs | 20 buf: &mut [u8], in read() 27 buf: &[u8], in write() 68 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 76 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() 93 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 102 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write()
|
/DragonOS-0.1.9/kernel/src/syscall/ |
D | user_access.rs | 47 pub unsafe fn copy_from_user(dst: &mut [u8], src: VirtAddr) -> Result<usize, SystemError> { in copy_from_user() 50 let src: &[u8] = core::slice::from_raw_parts(src.data() as *const u8, dst.len()); in copy_from_user() constant 74 user: *const u8, in check_and_clone_cstr() 123 let str_ptr: *const u8; in check_and_clone_cstr_array() constant 130 str_ptr = dst[0] as *const u8; in check_and_clone_cstr_array() constant 171 buffer: unsafe { core::slice::from_raw_parts(addr as *const u8, len) }, in new() constant 237 fn convert_with_offset<T>(&self, src: &[u8], offset: usize) -> Result<&[T], SystemError> { in convert_with_offset() 255 fn convert_one_with_offset<T>(&self, src: &[u8], offset: usize) -> Result<&T, SystemError> { in convert_one_with_offset() 324 fn convert_with_offset<T>(src: &mut [u8], offset: usize) -> Result<&mut [T], SystemError> { in convert_with_offset() 342 fn convert_one_with_offset<T>(src: &mut [u8], offset: usize) -> Result<&mut T, SystemError> { in convert_one_with_offset()
|
D | mod.rs | 89 Self::put_string(args[0] as *const u8, args[1] as u32, args[2] as u32) in handle() constant 150 UserBufferReader::new(buf_vaddr as *const u8, len, from_user)?; in handle() constant 191 UserBufferReader::new(buf_vaddr as *const u8, len, frame.from_user())?; in handle() constant 290 path_ptr as *const u8, in handle() constant 291 argv_ptr as *const *const u8, in handle() constant 292 env_ptr as *const *const u8, in handle() constant 410 let pathname = args[0] as *const u8; in handle() constant 416 let pathname = args[0] as *const u8; in handle() constant 450 let optval = args[3] as *const u8; in handle() constant 515 let buf = args[1] as *const u8; in handle() constant [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | vec_cursor.rs | 36 pub fn get_mut(&mut self) -> &mut Vec<u8> { in get_mut() 41 pub fn get_ref(&self) -> &Vec<u8> { in get_ref() 46 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() 158 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() 229 pub fn as_slice(&self) -> &[u8] { in as_slice() 234 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice()
|
D | keyboard_parser.rs | 66 fn parse(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in parse() 89 fn handle_start(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in handle_start() 108 scancode: u8, in handle_pause_break() 130 fn handle_func0(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in handle_func0() 267 fn handle_type3(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in handle_type3() 344 fn to_ctrl(ch: u8) -> u8 { in to_ctrl() 354 fn emit(ch: u8) { in emit() 362 scancode: u8, in handle_prtsc_press() 389 scancode: u8, in handle_prtsc_release()
|
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/ |
D | file.rs | 60 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() 297 buf: &mut [u8], in read() 306 buf: &[u8], in write() 329 buf: &mut [u8], in read() 338 _buf: &[u8], in write() 361 _buf: &mut [u8], in read() 370 buf: &[u8], in write() 393 _buf: &mut [u8], in read() 402 _buf: &[u8], in write() [all …]
|
D | mod.rs | 69 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() 142 _buf: &[u8], in write() 151 _buf: &mut [u8], in read() 174 buf: &mut [u8], in show() 181 buf: &[u8], in store()
|
/DragonOS-0.1.9/kernel/src/arch/ |
D | io.rs | 3 unsafe fn in8(port: u16) -> u8; in in8() 6 unsafe fn out8(port: u16, data: u8); in out8()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/asm/ |
D | pio.rs | 7 unsafe fn in8(port: u16) -> u8 { in in8() 22 unsafe fn out8(port: u16, data: u8) { in out8()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/ |
D | pio.rs | 7 unsafe fn in8(port: u16) -> u8 { in in8() 22 unsafe fn out8(port: u16, data: u8) { in out8()
|
/DragonOS-0.1.9/kernel/src/driver/net/ |
D | dma.rs | 18 pub fn dma_alloc(pages: usize) -> (usize, NonNull<u8>) { in dma_alloc() 45 pub unsafe fn dma_dealloc(paddr: usize, vaddr: NonNull<u8>, pages: usize) -> i32 { in dma_dealloc()
|
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 69 buf: &mut [u8], in read_at() 218 buf: &[u8], in write_at() 364 ctrl_num: u8, in new() 365 port_num: u8, in new() 546 fn blk_size_log2(&self) -> u8 { in blk_size_log2() 572 buf: &mut [u8], in read_at() 582 buf: &[u8], in write_at()
|
/DragonOS-0.1.9/kernel/src/init/ |
D | mod.rs | 50 pub fn boot_cmdline(&self) -> &[u8] { in boot_cmdline() 67 pub fn boot_cmdline_append(&mut self, data: &[u8]) { in boot_cmdline_append()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | open.rs | 19 path: *const u8, in do_faccessat() 52 pub fn do_fchmodat(dirfd: i32, path: *const u8, _mode: ModeType) -> Result<usize, SystemError> { in do_fchmodat()
|
/DragonOS-0.1.9/kernel/src/libs/intertrait/src/ |
D | hasher.rs | 17 fn write(&mut self, bytes: &[u8]) { in write()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | console.rs | 91 _color: u8, in con_build_attr() 97 ) -> Result<u8, SystemError> { in con_build_attr() 108 color_table: &[u8], in con_set_palette()
|