Searched refs:Layout (Results 1 – 6 of 6) sorted by relevance
| /rust/kernel/alloc/ |
| D | allocator.rs | 12 use core::alloc::Layout; 75 layout: Layout, in call() argument 76 old_layout: Layout, in call() argument 117 pub fn aligned_layout(layout: Layout) -> Layout { in aligned_layout() argument 133 layout: Layout, in realloc() argument 134 old_layout: Layout, in realloc() argument 152 layout: Layout, in realloc() argument 153 old_layout: Layout, in realloc() argument 176 layout: Layout, in realloc() argument 177 old_layout: Layout, in realloc() argument
|
| D | allocator_test.rs | 13 use core::alloc::Layout; 28 pub fn aligned_layout(layout: Layout) -> Layout { in aligned_layout() argument 51 layout: Layout, in realloc() argument 52 old_layout: Layout, in realloc() argument
|
| D | layout.rs | 7 use core::{alloc::Layout, marker::PhantomData}; 84 impl<T> From<ArrayLayout<T>> for Layout { implementation 86 let res = Layout::array::<T>(value.len); in from()
|
| D | kbox.rs | 8 use core::alloc::Layout; 268 let layout = Layout::new::<MaybeUninit<T>>(); in new_uninit() 484 let layout = Layout::for_value::<T>(self); in drop()
|
| /rust/kernel/ |
| D | alloc.rs | 31 use core::{alloc::Layout, ptr::NonNull}; 156 fn alloc(layout: Layout, flags: Flags) -> Result<NonNull<[u8]>, AllocError> { in alloc() argument 159 unsafe { Self::realloc(None, layout, Layout::new::<()>(), flags) } in alloc() 196 layout: Layout, in realloc() argument 197 old_layout: Layout, in realloc() argument 210 unsafe fn free(ptr: NonNull<u8>, layout: Layout) { in free() argument 214 let _ = unsafe { Self::realloc(Some(ptr), Layout::new::<()>(), layout, Flags(0)) }; in free() 219 pub(crate) fn dangling_from_layout(layout: Layout) -> NonNull<u8> { in dangling_from_layout()
|
| /rust/kernel/sync/ |
| D | arc.rs | 27 alloc::Layout, 148 let refcount_layout = Layout::new::<bindings::refcount_t>(); in container_of() 150 let val_layout = Layout::for_value(unsafe { &*ptr }); in container_of()
|