Home
last modified time | relevance | path

Searched refs:page_align_up (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs3 libs::align::page_align_up,
27 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in alloc_in_buddy()
49 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in free_in_buddy()
/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs12 libs::{align::page_align_up, spinlock::SpinLock},
32 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_pseudo_map_phys()
41 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_map_phys()
Dkernel_mapper.rs8 libs::align::page_align_up,
110 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in map_phys_with_size()
Dsyscall.rs8 libs::align::{check_aligned, page_align_up},
84 .set_brk(VirtAddr::new(page_align_up(new_addr.data()))) in brk()
Ducontext.rs22 align::page_align_up,
251 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in map_anonymous()
261 let len = page_align_up(len); in map_anonymous()
543 let new_brk = VirtAddr::new(page_align_up(new_brk.data())); in sbrk()
1250 bytes = page_align_up(bytes); in initial_extend()
1284 bytes = page_align_up(bytes); in extend()
/DragonOS-0.1.8/kernel/src/libs/
Dalign.rs121 pub fn page_align_up(addr: usize) -> usize { in page_align_up() function
Delf.rs15 libs::align::page_align_up,
248 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
274 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs13 use crate::libs::align::page_align_up;
325 unsafe { MMArch::virt_2_phys(VirtAddr::new(page_align_up(virt_offset))) }.unwrap(); in allocator_init()
460 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs19 libs::align::page_align_up,
922 let len = page_align_up(args[1]); in handle()
939 let len = page_align_up(args[1]); in handle()
949 let len = page_align_up(args[1]); in handle()