Home
last modified time | relevance | path

Searched refs:Layout (Results 1 – 6 of 6) sorted by relevance

/rust/kernel/alloc/
A Dallocator.rs12 use core::alloc::Layout;
47 fn aligned_size(new_layout: Layout) -> usize { in aligned_size()
87 layout: Layout, in call() argument
88 old_layout: Layout, in call() argument
134 layout: Layout, in realloc() argument
135 old_layout: Layout, in realloc() argument
151 layout: Layout, in realloc() argument
152 old_layout: Layout, in realloc() argument
175 layout: Layout, in realloc() argument
176 old_layout: Layout, in realloc() argument
A Dlayout.rs7 use core::{alloc::Layout, marker::PhantomData};
103 impl<T> From<ArrayLayout<T>> for Layout { implementation
105 let res = Layout::array::<T>(value.len); in from()
A Dallocator_test.rs13 use core::alloc::Layout;
40 layout: Layout, in realloc() argument
41 old_layout: Layout, in realloc() argument
A Dkbox.rs8 use core::alloc::Layout;
275 let layout = Layout::new::<MaybeUninit<T>>(); in new_uninit()
590 let layout = Layout::for_value::<T>(self); in drop()
/rust/kernel/
A Dalloc.rs31 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/
A Darc.rs28 alloc::Layout,
160 let refcount_layout = Layout::new::<bindings::refcount_t>(); in container_of()
162 let val_layout = Layout::for_value(unsafe { &*ptr }); in container_of()

Completed in 11 milliseconds