/DragonOS/kernel/src/mm/ |
H A D | ucontext.rs | 451 let region = match addr { in mmap() localVariable 462 let page = VirtPageFrame::new(region.start()); in mmap() 586 let r = r.lock_irqsave().region; in munmap() 588 let intersection = r.lock_irqsave().region().intersect(&to_unmap).unwrap(); in munmap() 632 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect() localVariable 635 let regions = self.mappings.conflicts(region).collect::<Vec<_>>(); in mprotect() 640 let r = *r.lock_irqsave().region(); in mprotect() 643 let intersection = r.lock_irqsave().region().intersect(®ion).unwrap(); in mprotect() 694 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in madvise() localVariable 695 let regions = self.mappings.conflicts(region).collect::<Vec<_>>(); in madvise() [all …]
|
H A D | mmio_buddy.rs | 108 let region: MmioBuddyAddrRegion = MmioBuddyAddrRegion::new(vaddr); in create_region() localVariable 111 return region; in create_region() 130 let region: MmioBuddyAddrRegion = self.create_region(vaddr); in give_back_block() localVariable 134 self.push_block(region, &mut list_guard); in give_back_block() 147 region: MmioBuddyAddrRegion, in split_block() 151 let vaddr = self.calculate_block_vaddr(region.vaddr, exp - 1); in split_block() 153 self.push_block(region, low_list_guard); in split_block() 194 Ok(region) => { in query_addr_region() 199 self.split_block(region, e2, low_list_guard); in query_addr_region() 203 self.split_block(region, e2, list_guard); in query_addr_region() [all …]
|
H A D | mod.rs | 794 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before() 795 return Self::between(self.start(), region.start()); in before() 801 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after() 803 return Self::between(region.end(), self.end()); in after()
|
H A D | fault.rs | 75 ((address - guard.region().start()) >> MMArch::PAGE_SHIFT) + file_page_offset in new() 532 let vma_region = *vma_guard.region(); in do_fault_around() 603 let addr = vma_guard.region().start in filemap_map_pages()
|
H A D | syscall.rs | 593 let vm_start = guard.region().start().data(); in msync() 594 let vm_end = guard.region().end().data(); in msync()
|
/DragonOS/user/apps/test_kvm/ |
H A D | main.c | 91 struct kvm_userspace_memory_region region = { in main() local 98 ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, ®ion); in main()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | fault.rs | 253 let region = *guard.region(); in do_user_addr_fault() localVariable 257 if !region.contains(address) { in do_user_addr_fault() 260 .extend_stack(region.start() - address) in do_user_addr_fault()
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | multiboot2.rs | 150 for region in mem_regions_tag.memory_areas() { in early_init_memory_blocks() 151 let start = PhysAddr::new(region.start_address() as usize); in early_init_memory_blocks() 152 let size = region.size() as usize; in early_init_memory_blocks() 153 let area_typ = MemoryAreaType::from(region.typ()); in early_init_memory_blocks()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | mod.rs | 217 fn unmap_physical_region<T>(region: &acpi::PhysicalMapping<Self, T>) { in unmap_physical_region() 221 region.virtual_start().as_ref() as *const T as usize in unmap_physical_region() 223 region.mapped_length(), in unmap_physical_region()
|
/DragonOS/kernel/src/ipc/ |
H A D | syscall.rs | 321 let region = address_write_guard in shmat() localVariable 326 let destination = VirtPageFrame::new(region.start()); in shmat() 345 region.start().data() in shmat() 354 if vma.lock_irqsave().region().start() != vaddr { in shmat() 431 if vma.lock_irqsave().region().start() != vaddr { in shmdt()
|
/DragonOS/docs/kernel/memory_management/ |
H A D | mmio.md | 172 | __buddy_split(&self,region,exp,list_guard) | 将给定大小为$2^{exp}$的内存块一分为二,并插入内存… 175 | __buddy_add_region_obj(&self,region,list_guard) | 往指定的地址空间链表中添加一个内存块 …
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 597 let region = FillRectData::new( in clear() localVariable 606 self.fb().fb_fillrect(region)?; in clear()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.9.md | 1452 * add usermemory region workflow
|