Home
last modified time | relevance | path

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

/linux/rust/kernel/alloc/
H A Dallocator.rs49 pub struct KVmalloc; struct
233 unsafe impl Allocator for KVmalloc { implementation
300 let ta = TestAlign::<Blob, KVmalloc>::new()?; in test_alignment()
303 let ta = TestAlign::<LargeAlignBlob, KVmalloc>::new()?; in test_alignment()
H A Dkvec.rs6 allocator::{KVmalloc, Kmalloc, Vmalloc, VmallocPageIter},
155 pub type KVVec<T> = Vec<T, KVmalloc>;
743 impl<T> Vec<T, KVmalloc> {
788 KVmalloc::realloc( in shrink_to()
817 unsafe { KVmalloc::free(self.ptr.cast(), self.layout.into()) }; in shrink_to()
827 let new_ptr = KVmalloc::alloc(new_layout.into(), flags, NumaNode::NO_NODE)?; in shrink_to()
841 unsafe { KVmalloc::free(self.ptr.cast(), self.layout.into()) }; in shrink_to()
H A Dkbox.rs6 use super::allocator::{KVmalloc, Kmalloc, Vmalloc, VmallocPageIter};
33 /// `Box` works with any of the kernel's allocators, e.g. [`Kmalloc`], [`Vmalloc`] or [`KVmalloc`].
107 /// Type alias for [`Box`] with a [`KVmalloc`] allocator.
117 pub type KVBox<T> = Box<T, super::allocator::KVmalloc>;