Searched refs:as_ptr (Results 1 – 14 of 14) sorted by relevance
/DragonOS-0.1.8/kernel/src/libs/ |
D | align.rs | 69 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()
|
D | notifier.rs | 38 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()
|
D | printk.rs | 119 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()
|
D | volatile.rs | 150 VolatileReadable::vread(core::ptr::addr_of!((*$nonnull.as_ptr()).$field)) 169 VolatileWritable::vwrite(core::ptr::addr_of_mut!((*$nonnull.as_ptr()).$field), $value)
|
D | lazy_init.rs | 111 return &*(*self.value.get()).as_ptr(); in get_unchecked()
|
D | elf.rs | 197 addr_to_map.as_ptr::<u8>() in load_elf_segment()
|
/DragonOS-0.1.8/kernel/src/driver/acpi/ |
D | acpi.rs | 20 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/ |
D | virtio_impl.rs | 62 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()
|
D | transport_pci.rs | 243 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/ |
D | mod.rs | 151 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/ |
D | user_access.rs | 38 p.copy_from_nonoverlapping(src.as_ptr(), src.len()); in copy_to_user()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci_irq.rs | 328 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/ |
D | mod.rs | 231 pub fn as_ptr<T>(self) -> *mut T { in as_ptr() method
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | buddy.rs | 510 .as_ptr::<u8>(), in buddy_free()
|