Home
last modified time | relevance | path

Searched refs:as_mut (Results 1 – 22 of 22) sorted by relevance

/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/
Dcurrent.rs15 ret = (tmp as *mut process_control_block).as_mut(); in current_pcb()
/DragonOS-0.1.8/kernel/src/libs/
Dffi_convert.rs10 return unsafe { core::mem::transmute::<*mut S, *mut D>(src).as_mut() }; in __convert_mut()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dfpu.rs90 unsafe { (pcb.fp_state as usize as *mut FpState).as_mut().unwrap() } in fp_state_save()
141 let fp = unsafe { (pcb.fp_state as usize as *mut FpState).as_mut().unwrap() }; in fp_state_restore()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs84 .as_mut() in read_at()
118 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()
124 .as_mut() in read_at()
156 .as_mut() in read_at()
244 .as_mut() in write_at()
279 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()
285 .as_mut() in write_at()
318 .as_mut() in write_at()
Dmod.rs87 hba_mem_list.push(unsafe { (virt_addr as *mut HbaMem).as_mut().unwrap() }); in ahci_rust_init()
188 return unsafe { (port as *const HbaPort as *mut HbaPort).as_mut().unwrap() }; in _port()
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio_impl.rs38 let kernel_mapper = kernel_mapper.as_mut().unwrap(); in dma_alloc()
64 let kernel_mapper = kernel_mapper.as_mut().unwrap(); in dma_dealloc()
/DragonOS-0.1.8/kernel/src/exception/
Dsoftirq.rs43 let cpu_pending = __CPU_PENDING.as_mut().unwrap(); in softirq_init()
55 return __SORTIRQ_VECTORS.as_mut().unwrap(); in softirq_vectors()
62 return &mut __CPU_PENDING.as_mut().unwrap()[cpu_id]; in cpu_pending()
/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs50 let mut kernel_mapper = kernel_mapper.as_mut(); in rs_map_phys()
54 .as_mut() in rs_map_phys()
Dkernel_mapper.rs70 pub fn as_mut(&mut self) -> Option<&mut PageMapper> { in as_mut() method
Dmmio_buddy.rs33 unsafe { __MMIO_POOL.as_mut().unwrap() } in mmio_pool()
545 let mut kernel_mapper = bindings.as_mut(); in release_mmio()
554 .as_mut() in release_mmio()
Ducontext.rs480 return self.user_stack.as_mut(); in user_stack_mut()
/DragonOS-0.1.8/kernel/src/sched/
Dcfs.rs23 return unsafe { CFS_SCHEDULER_PTR.as_mut().unwrap() }; in __get_cfs_scheduler()
85 res = unsafe { self.idle_pcb.as_mut().unwrap() }; in dequeue()
Drt.rs22 return unsafe { RT_SCHEDULER_PTR.as_mut().unwrap() }; in __get_rt_scheduler()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs92 let pcb = unsafe { process_find_pcb_by_pid(pid).as_mut() }; in signal_kill_proc_info()
170 let ret = unsafe { ((*pcb).sighand as *mut sighand_struct).as_mut() }; in lock_process_sighand()
550 let (info, still_pending) = unsafe { pending.queue.as_mut() } in collect_signal()
626 .as_mut() in setup_frame()
Dsignal_types.rs552 let sq = unsafe { sq.as_mut::<'static>() }.unwrap(); in from_c_void()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs405 let mut allocator_guard = binding.as_mut().unwrap(); in allocator_init()
610 assert!(mapper.as_mut().is_some()); in unmap_at_low_address()
614 .as_mut() in unmap_at_low_address()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs156 self.file.as_mut().unwrap() in file_mut()
Dprocess.rs58 let pcb = unsafe { _pcb.as_mut() }.unwrap(); in process_try_to_wake_up()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dfile.rs425 return unsafe { (pcb.fds as usize as *mut FileDescriptorVec).as_mut() }; in from_pcb()
Dsyscall.rs310 unsafe { (buf.as_mut_ptr() as *mut Dirent).as_mut() }.ok_or(SystemError::EFAULT)?; in getdents()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs120 let pcb = unsafe { process_find_pcb_by_pid(*pid).as_mut() }; in open_status()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs868 let msg = unsafe { msg.as_mut() }.ok_or(SystemError::EFAULT)?; in handle()