Home
last modified time | relevance | path

Searched refs:region (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs171 VirtPageFrame::new(vma_guard.region.start()), in try_clone()
172 PageFrameCount::new(vma_guard.region.size() / MMArch::PAGE_SIZE), in try_clone()
317 let region = match addr { in mmap() localVariable
328 let page = VirtPageFrame::new(region.start()); in mmap()
378 let r = r.lock().region; in munmap()
380 let intersection = r.lock().region().intersect(&to_unmap).unwrap(); in munmap()
424 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect() localVariable
427 let regions = self.mappings.conflicts(region).collect::<Vec<_>>(); in mprotect()
432 let r = r.lock().region().clone(); in mprotect()
435 let intersection = r.lock().region().intersect(&region).unwrap(); in mprotect()
[all …]
Dmmio_buddy.rs98 let region: MmioBuddyAddrRegion = MmioBuddyAddrRegion::new(vaddr); in create_region() localVariable
101 return region; in create_region()
120 let region: MmioBuddyAddrRegion = self.create_region(vaddr); in give_back_block() localVariable
124 self.push_block(region, &mut list_guard); in give_back_block()
137 region: MmioBuddyAddrRegion, in split_block()
141 let vaddr = self.calculate_block_vaddr(region.vaddr, exp - 1); in split_block()
143 self.push_block(region, low_list_guard); in split_block()
184 Ok(region) => { in query_addr_region()
189 self.split_block(region, e2, low_list_guard); in query_addr_region()
193 self.split_block(region, e2, list_guard); in query_addr_region()
[all …]
Dmod.rs556 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before()
557 return Self::between(self.start(), region.start()); in before()
563 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after()
565 return Self::between(region.end(), self.end()); in after()
/DragonOS-0.1.8/docs/kernel/memory_management/
Dmmio.md172 | __buddy_split(&self,region,exp,list_guard) | 将给定大小为$2^{exp}$的内存块一分为二,并插入内存…
175 | __buddy_add_region_obj(&self,region,list_guard) | 往指定的地址空间链表中添加一个内存块 …