Home
last modified time | relevance | path

Searched refs:as_ptr (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dalign.rs69 self.inner.as_ptr(), in fmt()
79 core::ptr::drop_in_place(self.inner.as_ptr()); in drop()
81 KERNEL_ALLOCATOR.dealloc(self.inner.as_ptr().cast(), Self::LAYOUT); in drop()
90 unsafe { &*self.inner.as_ptr() } in deref()
96 unsafe { &mut *self.inner.as_ptr() } in deref_mut()
Dnotifier.rs38 if Arc::as_ptr(&block) == Arc::as_ptr(b) { in register()
41 Arc::as_ptr(&block) in register()
67 .drain_filter(|b| Arc::as_ptr(&block) == Arc::as_ptr(b)); in unregister()
Dprintk.rs119 printk_color(WHITE, BLACK, str_to_print.as_ptr() as *const c_char); in __write_string()
131 printk_color(fr_color, bk_color, str_to_print.as_ptr() as *const c_char); in __write_string_color()
187 printk_color(WHITE, BLACK, str_to_print.as_ptr() as *const c_char); in __write_string_on_stack()
207 printk_color(fr_color, bk_color, str_to_print.as_ptr() as *const c_char); in __write_string_color_on_stack()
Dvolatile.rs150 VolatileReadable::vread(core::ptr::addr_of!((*$nonnull.as_ptr()).$field))
169 VolatileWritable::vwrite(core::ptr::addr_of_mut!((*$nonnull.as_ptr()).$field), $value)
Dlazy_init.rs111 return &*(*self.value.get()).as_ptr(); in get_unchecked()
Delf.rs197 addr_to_map.as_ptr::<u8>() in load_elf_segment()
/DragonOS-0.1.8/kernel/src/driver/acpi/
Dacpi.rs20 let table_length = unsafe { (*head.as_ptr()).Length }; in mcfg_find_segment()
23 (head.as_ptr() as usize + 44) as *mut _, in mcfg_find_segment()
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio_impl.rs62 let vaddr = VirtAddr::new(vaddr.as_ptr() as *mut u8 as usize); in dma_dealloc()
88 let vaddr = VirtAddr::new(buffer.as_ptr() as *mut u8 as usize); in share()
Dtransport_pci.rs243 addr_of_mut!((*self.notify_region.as_ptr())[index]).vwrite(queue); in notify()
310 let isr_status = unsafe { self.isr_status.as_ptr().vread() }; in ack_interrupt()
327 let config_space_ptr = NonNull::new(config_space.as_ptr() as *mut u32).unwrap(); in config_space()
507 NonNull::new(ptr::slice_from_raw_parts_mut(data.as_ptr(), len)).unwrap() in nonnull_slice_from_raw_parts()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs151 c_uart_send_str(0x3f8, "x86 64 init end\n\0".as_ptr()); in init()
232 c_uart_send_str(0x3f8, "init_memory_area_from_multiboot2 begin\n\0".as_ptr()); in init_memory_area_from_multiboot2()
240 c_uart_send_str(0x3f8, "init_memory_area_from_multiboot2 2\n\0".as_ptr()); in init_memory_area_from_multiboot2()
258 c_uart_send_str(0x3f8, "init_memory_area_from_multiboot2 end\n\0".as_ptr()); in init_memory_area_from_multiboot2()
294 c_uart_send_str(0x3f8, "mm_init\n\0".as_ptr()); in mm_init()
304 c_uart_send_str(0x3f8, "mm_init err\n\0".as_ptr()); in mm_init()
/DragonOS-0.1.8/kernel/src/syscall/
Duser_access.rs38 p.copy_from_nonoverlapping(src.as_ptr(), src.len()); in copy_to_user()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.rs328 common_msg.irq_name.as_ptr(), in msi_install()
477 common_msg.irq_name.as_ptr(), in msix_install()
/DragonOS-0.1.8/kernel/src/mm/
Dmod.rs231 pub fn as_ptr<T>(self) -> *mut T { in as_ptr() method
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs510 .as_ptr::<u8>(), in buddy_free()