Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
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()
Drwlock.rs90 pub fn as_mut_ptr(&self) -> *mut T { in as_mut_ptr() method
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs61 .map(|x| x.as_mut_ptr() as *mut u8) in local_alloc()
69 let ptr: *mut u8 = x.as_mut_ptr(); in local_alloc_zeroed()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs118 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()
279 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs310 unsafe { (buf.as_mut_ptr() as *mut Dirent).as_mut() }.ok_or(SystemError::EFAULT)?; in getdents()