Lines Matching defs:Kmalloc
38 /// `Kmalloc` is typically used for physically contiguous allocations up to page size, but also
42 pub struct Kmalloc;
55 /// `KVmalloc` attempts to allocate memory with `Kmalloc` first, but falls back to `Vmalloc` upon
57 /// known and may exceed the capabilities of `Kmalloc`.
138 impl Kmalloc {
139 /// Returns a [`Layout`] that makes [`Kmalloc`] fulfill the requested size and alignment of
143 // `layout.align()` which together with the slab guarantees means that `Kmalloc` will return
153 unsafe impl Allocator for Kmalloc {
164 let layout = Kmalloc::aligned_layout(layout);
258 // `KVmalloc` may use the `Kmalloc` backend, hence we have to enforce a `Kmalloc`
260 let layout = Kmalloc::aligned_layout(layout);
303 let ta = TestAlign::<Blob, Kmalloc>::new()?;
306 let ta = TestAlign::<LargeAlignBlob, Kmalloc>::new()?;