Home
last modified time | relevance | path

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

/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs573 let mut random_size = 0u64; in test_buddy() localVariable
574 unsafe { x86::random::rdrand64(&mut random_size) }; in test_buddy()
576 random_size %= 1024 * 4096; in test_buddy()
577 if random_size == 0 { in test_buddy()
580 let random_size = in test_buddy() localVariable
581 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
582 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy() localVariable
585 unsafe { LockedFrameAllocator.allocate(random_size).unwrap() }; in test_buddy()