Home
last modified time | relevance | path

Searched refs:as_mut_ptr (Results 1 – 13 of 13) sorted by relevance

/DragonOS/kernel/src/libs/
H A Dlazy_init.rs79 (*self.value.get()).as_mut_ptr().write(value); in init()
116 return &mut *(*self.value.get()).as_mut_ptr(); in get_mut_unchecked()
150 (*self.value.get()).as_mut_ptr().drop_in_place(); in drop()
H A Drwlock.rs96 pub fn as_mut_ptr(&self) -> *mut T { in as_mut_ptr() method
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs69 .map(|x| x.as_mut_ptr()) in local_alloc()
84 let ptr: *mut u8 = x.as_mut_ptr(); in local_alloc_zeroed()
/DragonOS/kernel/src/arch/x86_64/init/
H A Dmultiboot2.rs233 core::ptr::copy_nonoverlapping(bi_ptr as *const u8, MB2_RAW_INFO.as_mut_ptr(), bi_size); in early_multiboot2_init()
237 unsafe { BootInformation::load(MB2_RAW_INFO.as_mut_ptr() as *const BootInformationHeader) } in early_multiboot2_init()
/DragonOS/kernel/crates/kprobe/src/arch/x86/
H A Dmod.rs90 inst_tmp.as_mut_ptr(), in replace_inst()
/DragonOS/kernel/src/syscall/
H A Duser_access.rs339 byte_buffer.as_mut_ptr() as *mut T, in convert_with_offset()
352 let chunks = unsafe { from_raw_parts_mut(byte_buffer.as_mut_ptr() as *mut T, 1) }; in convert_one_with_offset()
/DragonOS/kernel/crates/rbpf/src/
H A Djit.rs995 libc::posix_memalign(raw.as_mut_ptr(), PAGE_SIZE, size); in new()
997 *raw.as_mut_ptr(), in new()
1001 … std::ptr::write_bytes(*raw.as_mut_ptr(), 0xc3, size); // for now, prepopulate with 'RET' calls in new()
1003 std::slice::from_raw_parts_mut(*raw.as_mut_ptr() as *mut u8, NUM_PAGES * PAGE_SIZE); in new()
1041 libc::free(self.contents.as_mut_ptr() as *mut libc::c_void); in drop()
/DragonOS/kernel/src/driver/video/
H A Dmod.rs287 target_guard.as_mut_ptr(), in run()
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs127 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()
291 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui.rs344 let buf = self.buf_mut().as_mut_ptr() as *mut u32; in put_color_in_pixel()
350 let buf = self.buf_mut().as_mut_ptr(); in put_color_in_pixel()
356 let buf = self.buf_mut().as_mut_ptr(); in put_color_in_pixel()
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs558 let mut tmp_ptr = tmp.as_mut_ptr(); in fb_copyarea()
593 let mut tmp_ptr = tmp.as_mut_ptr(); in fb_copyarea()
628 let mut tmp_ptr = tmp.as_mut_ptr() as *mut [u8; 3]; in fb_copyarea()
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs96 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
105 ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
/DragonOS/kernel/src/filesystem/vfs/
H A Dsyscall.rs775 unsafe { (buf.as_mut_ptr() as *mut Dirent).as_mut() }.ok_or(SystemError::EFAULT)?; in getdents()