Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 47) sorted by relevance

12

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs205 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 Dmain.rs81 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 Dmod.rs167 pub unsafe fn switch_process(prev: Arc<ProcessControlBlock>, next: Arc<ProcessControlBlock>) { in switch_process()
174 Self::switch_process_fpu(&prev, &next); in switch_process()
175 Self::switch_local_context(&prev, &next); in switch_process()
178 let next_addr_space = next.basic().user_vm().as_ref().unwrap().clone(); in switch_process()
188 let next_arch = SpinLockGuard::leak(next.arch_info_irqsave()) as *mut ArchPCBInfo; in switch_process()
195 PROCESS_SWITCH_RESULT.as_mut().unwrap().get_mut().next_pcb = Some(next); in switch_process()
202 fn switch_process_fpu(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_process_fpu()
204 let next_regs = unsafe { Self::task_trapframe(next) }; in switch_process_fpu()
208 next.arch_info_irqsave().fp_state.restore(next_regs); in switch_process_fpu()
211 fn switch_local_context(prev: &Arc<ProcessControlBlock>, next: &Arc<ProcessControlBlock>) { in switch_local_context()
[all …]
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs368 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 Dutils.rs18 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 Dpage_frame.rs49 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/kernel/src/driver/video/fbdev/base/
H A Drender_helper.rs51 ans.current = *ans.src.next().unwrap(); in new()
74 self.current = match self.src.next() { in move_mask()
138 fn next(&mut self) -> Option<Self::Item> { in next() method
/DragonOS/tools/debugging/logmonitor/src/
H A Dapp.rs116 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 Dmain.rs46 match events.next()? { in start_headless_app()
84 match tui.events.next()? { in start_tui_app()
H A Devent.rs76 pub fn next(&self) -> AppResult<Event> { in next() method
/DragonOS/kernel/src/init/
H A Dcmdline.rs433 let key = iter.next().unwrap(); in split_arg()
434 let value = iter.next(); in split_arg()
436 if value.is_some() && iter.next().is_some() { in split_arg()
442 let v1 = iter.next().map(|v| v.trim()); in split_arg()
443 let v2 = iter.next().map(|v| v.trim()); in split_arg()
444 let v3 = iter.next().map(|v| v.trim()); in split_arg()
/DragonOS/kernel/src/libs/
H A Drbtree.rs178 fn next(self) -> NodePtr<K, V> { in next() method
495 fn next(&mut self) -> Option<&'a K> { in next() method
496 self.inner.next().map(|(k, _)| k) in next()
540 fn next(&mut self) -> Option<&'a V> { in next() method
541 self.inner.next().map(|(_, v)| v) in next()
588 fn next(&mut self) -> Option<&'a mut V> { in next() method
589 self.inner.next().map(|(_, v)| v) in next()
616 fn next(&mut self) -> Option<(K, V)> { in next() method
625 let next = self.head.next(); in next() localVariable
632 self.head = next; in next()
[all …]
H A Dcpumask.rs135 fn next(&mut self) -> Option<ProcessorId> { in next() method
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_mmio.rs35 .next() in new()
45 .next() in new()
/DragonOS/kernel/src/sched/
H A Dfair.rs176 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 Dmod.rs886 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 Dcache_iter.rs65 fn next(&mut self) -> Option<Self::Item> { in next() method
/DragonOS/kernel/src/arch/riscv64/pci/
H A Dpci_host_ecam.rs18 .next() in pci_host_ecam_driver_init()
/DragonOS/kernel/src/driver/base/platform/
H A Dmod.rs59 self.0.intersection(&other.0).next().is_some() in matches()
/DragonOS/kernel/src/ipc/
H A Dshm.rs172 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 Dbitmap_core.rs102 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 Dbpf.rs244 cur_phys = cur_phys.next(); in do_mmap()
271 cur_phys = cur_phys.next(); in drop()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs650 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 Dmemmap.rs73 fn next(&mut self) -> Option<Self::Item> { in next() method
/DragonOS/kernel/src/filesystem/
H A Dmbr.rs175 fn next(&mut self) -> Option<Self::Item> { in next() method

12