Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 31) sorted by relevance

12

/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs62 current: PhysPageFrame, field
70 current: start, in new()
80 if unlikely(self.current == self.end) { in next()
83 let current: PhysPageFrame = self.current; in next() localVariable
84 self.current = self.current.next_by(1); in next()
85 return Some(current); in next()
127 current: start, in iter_range()
142 current: VirtPageFrame, field
151 current: start, in new()
161 if unlikely(self.current == self.end) { in next()
[all …]
H A Dbump.rs112 PageMapper::<MMA, _>::current(PageTableKind::Kernel, BumpAllocator::<MMA>::new(0)); in ensure_early_mapping()
/DragonOS/kernel/src/driver/block/cache/
H A Dcache_iter.rs46 current: usize, field
57 current: 0, in new()
66 if self.current < self.count { in next()
68 self.lba_id_start + self.current, in next()
69 self.current * self.block_size, in next()
72 self.current += 1; in next()
H A Dcached_block_device.rs389 current: usize, field
397 current: 0, in new()
404 let ans = self.current; in index_append()
406 self.current += 1; in index_append()
407 self.current %= self.threshold; in index_append()
412 let ans = self.current; in index_replace()
413 self.current += 1; in index_replace()
414 self.current %= self.threshold; in index_replace()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Drender_helper.rs16 current: u8, field
49 current: 0, in new()
55 ans.current = *ans.src.next().unwrap(); in new()
78 self.current = match self.src.next() { in move_mask()
133 match self.read_mask & self.current { in read_bit()
196 current: usize, field
216 current: 0, in new()
234 if self.dst.data() + self.current + self.start_offset + size > self.limit.data() { in write()
244 dst = dst.add(self.current + self.start_offset); in write()
251 self.current += size; in write()
[all …]
/DragonOS/kernel/src/namespaces/
H A Dnamespace.rs89 let current = ProcessManager::current_pid(); in unshare_nsproxy_namespaces() localVariable
90 let pcb = ProcessManager::find(current).unwrap(); in unshare_nsproxy_namespaces()
101 let current = ProcessManager::current_pcb(); in prepare_nsset() localVariable
104 fs: current.fs_struct(), in prepare_nsset()
105 nsproxy: create_new_namespaces(flags, &current, USER_NS.clone())?, in prepare_nsset()
111 let current = ProcessManager::current_pcb(); in commit_nsset() localVariable
113 let fs = current.fs_struct(); in commit_nsset()
118 switch_task_namespace(current, nsset.nsproxy); // 转移所有权 in commit_nsset()
H A Dsyscall.rs32 let current = ProcessManager::current_pcb(); in sys_unshare() localVariable
34 *current.get_nsproxy().write() = nsproxy; in sys_unshare()
H A Dpid_namespace.rs172 let current = ProcessManager::current_pid(); in get_parent() localVariable
173 let pcb = ProcessManager::find(current).unwrap(); in get_parent()
192 let current = ProcessManager::current_pid(); in install() localVariable
193 let pcb = ProcessManager::find(current).unwrap(); in install()
/DragonOS/kernel/src/driver/tty/
H A Dtty_job_control.rs93 let current = ProcessManager::current_pcb(); in job_ctrl_ioctl() localVariable
97 if current.sig_info_irqsave().tty().is_none() in job_ctrl_ioctl()
98 || !Arc::ptr_eq(&current.sig_info_irqsave().tty().clone().unwrap(), &tty) in job_ctrl_ioctl()
100 || ctrl.session.unwrap() != current.basic().sid() in job_ctrl_ioctl()
111 let current = ProcessManager::current_pcb(); in job_ctrl_ioctl() localVariable
112 if current.sig_info_irqsave().tty().is_some() in job_ctrl_ioctl()
113 && !Arc::ptr_eq(&current.sig_info_irqsave().tty().unwrap(), &tty) in job_ctrl_ioctl()
/DragonOS/kernel/src/sched/
H A Dmod.rs326 current: Weak<ProcessControlBlock>, field
353 current: Weak::new(), in new()
468 if pcb.sched_info().policy() == self.current().sched_info().policy() { in check_preempt_currnet()
469 match self.current().sched_info().policy() { in check_preempt_currnet()
477 } else if pcb.sched_info().policy() < self.current().sched_info().policy() { in check_preempt_currnet()
482 if *self.current().sched_info().on_rq.lock_irqsave() == OnRq::Queued in check_preempt_currnet()
483 && self.current().flags().contains(ProcessFlags::NEED_SCHEDULE) in check_preempt_currnet()
611 pub fn current(&self) -> Arc<ProcessControlBlock> { in current() method
612 self.current.upgrade().unwrap() in current()
617 self.current = pcb; in set_current()
[all …]
H A Dfair.rs333 current: Weak<FairSchedEntity>, field
386 current: Weak::new(), in new()
435 pub fn current(&self) -> Option<Arc<FairSchedEntity>> { in current() method
436 self.current.upgrade() in current()
441 self.current = curr in set_current()
567 let curr = self.current(); in update_current()
618 if likely(self.current().is_some()) && self.nr_running > 1 { in account_cfs_rq_runtime()
643 let curr = self.current(); in update_min_vruntime()
685 if self.current().is_none() { in is_curr()
689 Arc::ptr_eq(se, self.current().as_ref().unwrap()) in is_curr()
[all …]
/DragonOS/.github/workflows/
H A Ddocs.yml1 name: Build current version docs
15 build-current-version:
/DragonOS/kernel/src/libs/
H A Dint_like.rs95 current: $new_type_name,
102 .compare_exchange(current.into(), new.into(), success, failure)
111 current: $new_type_name,
117 current.into(),
H A Dprintk.c606 unsigned char current; in printk_color() local
611 current = *(buf + i); in printk_color()
613 rs_textui_putchar(current, FRcolor, BKcolor); in printk_color()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs178 self.fsbase = x86::current::segmentation::rdfsbase() as usize; in save_fsbase()
186 self.gsbase = x86::current::segmentation::rdgsbase() as usize; in save_gsbase()
194 x86::current::segmentation::wrfsbase(self.fsbase as u64); in restore_fsbase()
202 x86::current::segmentation::wrgsbase(self.gsbase as u64); in restore_gsbase()
271 let ptr = VirtAddr::new(x86::current::registers::rsp() as usize); in arch_current_pcb()
520 (x86::current::registers::rsp() as usize) < trap_frame_vaddr.data(), in arch_switch_to_user()
524 x86::current::registers::rsp() as usize, in arch_switch_to_user()
H A Dtable.rs1 use x86::{current::task::TaskStateSegment, segmentation::SegmentSelector, Ring};
/DragonOS/kernel/src/mm/
H A Dsyscall.rs255 let address_space = AddressSpace::current()?; in brk()
275 let address_space = AddressSpace::current()?; in sbrk()
325 let current_address_space = AddressSpace::current()?; in mmap()
403 let current_address_space = AddressSpace::current()?; in mremap()
461 let current_address_space: Arc<AddressSpace> = AddressSpace::current()?; in munmap()
497 let current_address_space: Arc<AddressSpace> = AddressSpace::current()?; in mprotect()
533 let current_address_space: Arc<AddressSpace> = AddressSpace::current()?; in madvise()
584 let current_address_space = AddressSpace::current()?; in msync()
H A Dkernel_mapper.rs68 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock()
/DragonOS/docs/kernel/sched/
H A Dcfs.md27 - ``current``: 当前正在运行的实体
H A Dcore.md38 - ``current``: 当前在CPU上运行的进程。
/DragonOS/kernel/src/filesystem/vfs/
H A Dmount.rs221 let mut current = self.self_ref.upgrade().unwrap(); in do_absolute_path() localVariable
223 while current.metadata()?.inode_id != ROOT_INODE().metadata()?.inode_id { in do_absolute_path()
224 let name = current.dname()?; in do_absolute_path()
226 current = current.do_parent()?; in do_absolute_path()
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dept.rs75 let mapper = unsafe { PageMapper::current(PageTableKind::EPT, LockedFrameAllocator) }; in lock()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs76 unsafe { PageMapper::current(crate::mm::PageTableKind::User, LockedFrameAllocator) }; in show_fault_oops()
228 let current_address_space: Arc<AddressSpace> = AddressSpace::current().unwrap(); in do_user_addr_fault()
/DragonOS/kernel/src/process/
H A Didle.rs90 return VirtAddr::new(x86::current::registers::rsp() as usize); in stack_ptr()
H A Dmod.rs353 let current = ProcessManager::current_pcb(); in exit_notify() localVariable
355 if current.pid() != Pid(1) { in exit_notify()
357 current in exit_notify()
361 let r = current.parent_pcb.read_irqsave().upgrade(); in exit_notify()
370 current.pid(), in exit_notify()
503 if pcb.pid() == cpu_rq(cpu_id.data() as usize).current().pid() { in kick()

12