Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs51 enum Slab { enum
94 fn get_slab(requested_size: usize) -> Slab { in get_slab() argument
96 0..=8 => Slab::Base(0), in get_slab()
97 9..=16 => Slab::Base(1), in get_slab()
98 17..=32 => Slab::Base(2), in get_slab()
99 33..=64 => Slab::Base(3), in get_slab()
100 65..=128 => Slab::Base(4), in get_slab()
101 129..=256 => Slab::Base(5), in get_slab()
102 257..=512 => Slab::Base(6), in get_slab()
103 513..=1024 => Slab::Base(7), in get_slab()
[all …]
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs113 alloc_debug_log(klog_types::LogSource::Slab, layout, r); in alloc()
123 alloc_debug_log(klog_types::LogSource::Slab, layout, r); in alloc_zeroed()
132 dealloc_debug_log(klog_types::LogSource::Slab, layout, ptr); in dealloc()
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs166 Slab = 3, enumerator