Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs76 pub unsafe fn new(mut bump_allocator: BumpAllocator<A>) -> Option<Self> { in new()
77 let initial_free_pages = bump_allocator.usage().free(); in new()
93 let curr_page = bump_allocator.allocate_one(); in new()
105 let curr_page = bump_allocator.allocate_one().unwrap(); in new()
119 let initial_bump_offset = bump_allocator.offset(); in new()
120 let pages_to_buddy = bump_allocator.usage().free(); in new()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs328 let mut bump_allocator = in allocator_init() localVariable
332 bump_allocator.offset() in allocator_init()
347 &mut bump_allocator, in allocator_init()
389 bump_allocator.offset() / 1024 in allocator_init()
393 let buddy_allocator = unsafe { BuddyAllocator::<X86_64MMArch>::new(bump_allocator).unwrap() }; in allocator_init()