Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs452 let mut random_size = 0u64; in test_buddy() localVariable
453 unsafe { x86::random::rdrand64(&mut random_size) }; in test_buddy()
455 random_size = random_size % (1024 * 4096); in test_buddy()
456 if random_size == 0 { in test_buddy()
459 let random_size = in test_buddy() localVariable
460 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
461 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy() localVariable
464 unsafe { LockedFrameAllocator.allocate(random_size).unwrap() }; in test_buddy()