Lines Matching defs:AllocError
12 use crate::alloc::{AllocError, Flags};
32 /// use kernel::alloc::AllocError;
54 /// use kernel::alloc::{AllocError, flags::GFP_KERNEL};
58 /// fn get_id_maybe_realloc(guarded_pool: &SpinLock<IdPool>) -> Result<usize, AllocError> {
66 /// let resizer = alloc_request.ok_or(AllocError)?.realloc(GFP_KERNEL)?;
95 pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> {
120 pub fn with_capacity(num_ids: usize, flags: Flags) -> Result<Self, AllocError> {
142 /// alloc::AllocError,
151 /// let alloc_request = pool.shrink_request().ok_or(AllocError)?;
155 /// # Ok::<(), AllocError>(())