/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | pages.rs | 205 fn next(&mut self) -> &mut Rawlink<Self> in next() method 291 next: Rawlink<ObjectPage<'a>>, field 323 fn next(&mut self) -> &mut Rawlink<Self> { in next() method 324 &mut self.next in next() 388 *head.next() = Rawlink::some(new_head); in insert_front() 400 self.head = slab_page.next().resolve_mut(); in remove_from_list() 403 *prev.next() = match slab_page.next().resolve_mut() { in remove_from_list() 405 Some(next) => Rawlink::some(next), in remove_from_list() 410 match slab_page.next().resolve_mut() { in remove_from_list() 412 Some(next) => { in remove_from_list() [all …]
|
/DragonOS/user/apps/test-for-robustfutex/src/ |
H A D | main.rs | 81 next: *const RobustList, field 194 list: RobustList { next: ptr::null() }, in set_list() 202 head_ref_mut.list.next = futexes.get_addr(0) as *const RobustList; in set_list() 205 let list_2 = NonNull::from(&*head_ref_mut.list.next).as_ptr(); in set_list() 207 list_2_ref_mut.next = futexes.get_addr(1) as *const RobustList; in set_list() 235 list: RobustList { next: ptr::null() }, in test01() 271 head_ref_mut.list.next = futexes.offset(0) as *const RobustList; in test01() 272 let list_2 = NonNull::from(&*head_ref_mut.list.next).as_ptr(); in test01() 274 list_2_ref_mut.next = futexes.offset(1) as *const RobustList; in test01() 275 println!("robust list next addr: {:?}", (*head).list.next); in test01() [all …]
|
/DragonOS/kernel/src/arch/riscv64/process/ |
H A D | mod.rs | 164 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process() 171 Self::switch_process_fpu(&prev, &next); in switch_process() 172 Self::switch_local_context(&prev, &next); in switch_process() 175 let next_addr_space = next.basic().user_vm().as_ref().unwrap().clone(); in switch_process() 185 let next_arch = SpinLockGuard::leak(next.arch_info_irqsave()) as *mut ArchPCBInfo; in switch_process() 192 PROCESS_SWITCH_RESULT.as_mut().unwrap().get_mut().next_pcb = Some(next); in switch_process() 199 fn switch_process_fpu(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_process_fpu() 201 let next_regs = unsafe { Self::task_trapframe(next) }; in switch_process_fpu() 205 next.arch_info_irqsave().fp_state.restore(next_regs); in switch_process_fpu() 208 fn switch_local_context(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_local_context() [all …]
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | mod.rs | 368 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process() 374 next.arch_info_irqsave().restore_fp_state(); in switch_process() 378 next.arch_info_irqsave().restore_fsbase(); in switch_process() 381 Self::switch_gsbase(&prev, &next); in switch_process() 384 let next_addr_space = next.basic().user_vm().as_ref().unwrap().clone(); in switch_process() 393 let next_arch = SpinLockGuard::leak(next.arch_info_irqsave()) as *mut ArchPCBInfo; in switch_process() 405 next.kernel_stack().stack_max_address().data() as u64, in switch_process() 408 PROCESS_SWITCH_RESULT.as_mut().unwrap().get_mut().next_pcb = Some(next); in switch_process() 415 unsafe fn switch_gsbase(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_gsbase() 418 next.arch_info_irqsave().restore_gsbase(); in switch_gsbase() [all …]
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | utils.rs | 18 let comp = path_split.next().unwrap_or(""); in split_path() 19 let rest_opt = path_split.next(); in split_path() 29 let comp = path_split.next().unwrap_or(""); in rsplit_path() 30 let rest_opt = path_split.next(); in rsplit_path()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | page_frame.rs | 49 pub fn next(&self) -> Self { in next() method 79 fn next(&mut self) -> Option<Self::Item> { in next() method 120 pub fn next(&self) -> Self { in next() method 160 fn next(&mut self) -> Option<Self::Item> { in next() method 382 frame = frame.next(); in deallocate_page_frames()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | app.rs | 116 pub fn next(&mut self) { in next() method 166 fn next(&mut self) -> Option<u64> { in next() method 185 pub fn next(&mut self) { in next() method
|
H A D | main.rs | 46 match events.next()? { in start_headless_app() 84 match tui.events.next()? { in start_tui_app()
|
H A D | event.rs | 76 pub fn next(&self) -> AppResult<Event> { in next() method
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 436 let key = iter.next().unwrap(); in split_arg() 437 let value = iter.next(); in split_arg() 439 if value.is_some() && iter.next().is_some() { in split_arg() 445 let v1 = iter.next().map(|v| v.trim()); in split_arg() 446 let v2 = iter.next().map(|v| v.trim()); in split_arg() 447 let v3 = iter.next().map(|v| v.trim()); in split_arg()
|
/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 178 fn next(self) -> NodePtr<K, V> { in next() method 494 fn next(&mut self) -> Option<&'a K> { in next() method 495 self.inner.next().map(|(k, _)| k) in next() 539 fn next(&mut self) -> Option<&'a V> { in next() method 540 self.inner.next().map(|(_, v)| v) in next() 587 fn next(&mut self) -> Option<&'a mut V> { in next() method 588 self.inner.next().map(|(_, v)| v) in next() 615 fn next(&mut self) -> Option<(K, V)> { in next() method 624 let next = self.head.next(); in next() localVariable 631 self.head = next; in next() [all …]
|
H A D | cpumask.rs | 135 fn next(&mut self) -> Option<ProcessorId> { in next() method
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | render_helper.rs | 55 ans.current = *ans.src.next().unwrap(); in new() 78 self.current = match self.src.next() { in move_mask() 142 fn next(&mut self) -> Option<Self::Item> { in next() method
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport_mmio.rs | 35 .next() in new() 45 .next() in new()
|
/DragonOS/kernel/src/sched/ |
H A D | fair.rs | 176 if let Some(next) = cfs_rq.next.upgrade() { in clear_buddies() 177 if !Arc::ptr_eq(&next, &se) { in clear_buddies() 181 cfs_rq.next = Weak::new(); in clear_buddies() 335 next: Weak<FairSchedEntity>, field 387 next: Weak::new(), in new() 445 pub fn next(&self) -> Option<Arc<FairSchedEntity>> { in next() method 446 self.next.upgrade() in next() 542 if let Some(next) = self.next.upgrade() { in clear_buddies() 543 if Arc::ptr_eq(&next, se) { in clear_buddies() 1350 && self.next().is_some() in pick_next_entity() [all …]
|
H A D | mod.rs | 886 let next = rq.pick_next_task(prev.clone()); in __schedule() localVariable 906 if likely(!Arc::ptr_eq(&prev, &next)) { in __schedule() 907 rq.set_current(Arc::downgrade(&next)); in __schedule() 926 unsafe { ProcessManager::switch_process(prev, next) }; in __schedule()
|
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cache_iter.rs | 65 fn next(&mut self) -> Option<Self::Item> { in next() method
|
/DragonOS/kernel/src/arch/riscv64/pci/ |
H A D | pci_host_ecam.rs | 18 .next() in pci_host_ecam_driver_init()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | mod.rs | 59 self.0.intersection(&other.0).next().is_some() in matches()
|
/DragonOS/kernel/src/ipc/ |
H A D | shm.rs | 172 cur_phys = cur_phys.next(); in add() 330 cur_phys = cur_phys.next(); in ipc_rmid() 344 cur_phys = cur_phys.next(); in ipc_rmid() 454 cur_phys = cur_phys.next(); in map_count()
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | bitmap_core.rs | 102 let mut last_element = *iter.next()?; in last_false_index() 227 while let Some(element) = iter.next() { in is_full()
|
/DragonOS/kernel/src/perf/ |
H A D | bpf.rs | 246 cur_phys = cur_phys.next(); in do_mmap() 273 cur_phys = cur_phys.next(); in drop()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 650 next: VirtAddr, field 837 entry: robust_list_head.list.next, in new() 850 fn next(&mut self) -> Option<Self::Item> { in next() method 880 self.entry = next_entry.next; in next()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | memmap.rs | 73 fn next(&mut self) -> Option<Self::Item> { in next() method
|
/DragonOS/kernel/src/filesystem/ |
H A D | mbr.rs | 175 fn next(&mut self) -> Option<Self::Item> { in next() method
|