Searched refs:alloc (Results 1 – 17 of 17) sorted by relevance
| /rust/kernel/alloc/ |
| D | allocator.rs | 12 use core::alloc::Layout; 16 use crate::alloc::{AllocError, Allocator}; 105 crate::alloc::dangling_from_layout(layout) in call()
|
| D | allocator_test.rs | 13 use core::alloc::Layout; 71 crate::alloc::dangling_from_layout(layout), in realloc()
|
| D | layout.rs | 7 use core::{alloc::Layout, marker::PhantomData};
|
| D | kvec.rs | 54 $crate::alloc::KVec::new() 57 $crate::alloc::KVec::from_elem($elem, $n, GFP_KERNEL) 60 match $crate::alloc::KBox::new_uninit(GFP_KERNEL) { 61 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))),
|
| D | kbox.rs | 8 use core::alloc::Layout; 269 let ptr = A::alloc(layout, flags)?; in new_uninit()
|
| /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() method
|
| D | prelude.rs | 17 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
|
| D | error.rs | 7 use crate::{alloc::AllocError, str::CStr}; 9 use core::alloc::LayoutError;
|
| D | page.rs | 6 alloc::{AllocError, Flags},
|
| D | lib.rs | 34 pub mod alloc; module
|
| D | uaccess.rs | 8 alloc::{Allocator, Flags},
|
| D | workqueue.rs | 133 use crate::alloc::{AllocError, Flags};
|
| D | str.rs | 5 use crate::alloc::{flags::*, AllocError, KVec};
|
| D | init.rs | 214 alloc::{AllocError, Flags, KBox},
|
| D | rbtree.rs | 9 use crate::{alloc::Flags, bindings, container_of, error::Result, prelude::*};
|
| /rust/kernel/sync/ |
| D | arc.rs | 20 alloc::{AllocError, Flags, KBox}, 27 alloc::Layout,
|
| /rust/kernel/list/ |
| D | arc.rs | 7 use crate::alloc::{AllocError, Flags};
|