Skip to main content

Module alloc

Module alloc 

Source

Re-exportsยง

use std::alloc::GlobalAlloc; ๐Ÿ”’
use std::alloc::Layout; ๐Ÿ”’
use std::fs::File; ๐Ÿ”’
use std::io::BufRead; ๐Ÿ”’
use std::io::BufReader; ๐Ÿ”’
use std::io::Write; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::sync::atomic::AtomicI32; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use seccomp::*; ๐Ÿ”’

Structsยง

AlignedHeap ๐Ÿ”’
BuddyAlloc
BuddyAllocParam
Entry ๐Ÿ”’
Node ๐Ÿ”’
UserAllocator
VmSettings ๐Ÿ”’

Constantsยง

HEAP_SIZE ๐Ÿ”’
LEAF_ALIGN_ERROR_MSG ๐Ÿ”’
LEAF_SIZE ๐Ÿ”’
MIN_LEAF_SIZE_ALIGN
required align to 16 bytes, since Node takes 16 bytes on 64-bits machine.
OOM_MSG ๐Ÿ”’
Buddy allocator

Staticsยง

ALLOCATOR
HEAP ๐Ÿ”’
VM ๐Ÿ”’

Functionsยง

bit_clear ๐Ÿ”’
bit_isset ๐Ÿ”’
bit_set ๐Ÿ”’
block_size_2base ๐Ÿ”’
first_up_k
log2 ๐Ÿ”’
nblock ๐Ÿ”’
roundup ๐Ÿ”’