Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs17 SCAllocator::new(1 << 3), // 8
18 SCAllocator::new(1 << 4), // 16
19 SCAllocator::new(1 << 5), // 32
20 SCAllocator::new(1 << 6), // 64
21 SCAllocator::new(1 << 7), // 128
22 SCAllocator::new(1 << 8), // 256
23 SCAllocator::new(1 << 9), // 512
24 SCAllocator::new(1 << 10), // 1024
25 SCAllocator::new(1 << 11), // 2048 ],
41 small_slabs: [SCAllocator<'a, ObjectPage<'a>>; ZoneAllocator::MAX_BASE_SIZE_CLASSES],
H A Dsc.rs49 pub struct SCAllocator<'a, P: AllocablePage> { struct
73 SCAllocator { argument
87 impl<'a, P: AllocablePage> SCAllocator<'a, P> { impl
92 pub const fn new(size: usize) -> SCAllocator<'a, P> { in new()
97 pub fn new(size: usize) -> SCAllocator<'a, P> { in new()
215 if self.allocation_count > SCAllocator::<P>::REBALANCE_COUNT { in try_allocate_from_pagelist()