/DragonOS/kernel/src/mm/allocator/ |
H A D | page_frame.rs | 62 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 D | bump.rs | 112 PageMapper::<MMA, _>::current(PageTableKind::Kernel, BumpAllocator::<MMA>::new(0)); in ensure_early_mapping()
|
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cache_iter.rs | 46 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 D | cached_block_device.rs | 389 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/namespaces/ |
H A D | namespace.rs | 89 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, ¤t, 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 D | syscall.rs | 32 let current = ProcessManager::current_pcb(); in sys_unshare() localVariable 34 *current.get_nsproxy().write() = nsproxy; in sys_unshare()
|
H A D | pid_namespace.rs | 172 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 D | tty_job_control.rs | 93 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(¤t.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(¤t.sig_info_irqsave().tty().unwrap(), &tty) in job_ctrl_ioctl()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | render_helper.rs | 12 current: u8, field 45 current: 0, in new() 51 ans.current = *ans.src.next().unwrap(); in new() 74 self.current = match self.src.next() { in move_mask() 129 match self.read_mask & self.current { in read_bit()
|
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 326 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 D | fair.rs | 333 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 D | docs.yml | 1 name: Build current version docs 15 build-current-version:
|
/DragonOS/kernel/src/libs/ |
H A D | int_like.rs | 95 current: $new_type_name, 102 .compare_exchange(current.into(), new.into(), success, failure) 111 current: $new_type_name, 117 current.into(),
|
H A D | printk.c | 606 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 D | mod.rs | 178 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() 521 (x86::current::registers::rsp() as usize) < trap_frame_vaddr.data(), in arch_switch_to_user() 525 x86::current::registers::rsp() as usize, in arch_switch_to_user()
|
H A D | table.rs | 1 use x86::{current::task::TaskStateSegment, segmentation::SegmentSelector, Ring};
|
/DragonOS/kernel/src/mm/ |
H A D | syscall.rs | 255 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 D | kernel_mapper.rs | 68 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock()
|
/DragonOS/docs/kernel/sched/ |
H A D | cfs.md | 27 - ``current``: 当前正在运行的实体
|
H A D | core.md | 38 - ``current``: 当前在CPU上运行的进程。
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mount.rs | 221 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 D | ept.rs | 75 let mapper = unsafe { PageMapper::current(PageTableKind::EPT, LockedFrameAllocator) }; in lock()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | fault.rs | 76 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 D | idle.rs | 90 return VirtAddr::new(x86::current::registers::rsp() as usize); in stack_ptr()
|
H A D | mod.rs | 353 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()
|