Lines Matching defs:AllocError
9 use crate::alloc::{AllocError, Flags};
245 /// Fails with [`AllocError`] when the [`BitmapVec`] could not be allocated. This
248 pub fn new(nbits: usize, flags: Flags) -> Result<Self, AllocError> {
256 return Err(AllocError);
261 let ptr = NonNull::new(ptr).ok_or(AllocError)?;
400 /// use kernel::alloc::{AllocError, flags::GFP_KERNEL};
413 /// # Ok::<(), AllocError>(())
434 /// use kernel::alloc::{AllocError, flags::GFP_KERNEL};
447 /// # Ok::<(), AllocError>(())
528 fn bitmap_vec_new() -> Result<(), AllocError> {
538 // Requesting too large values results in [`AllocError`].
545 fn bitmap_set_clear_find() -> Result<(), AllocError> {
575 fn owned_bitmap_out_of_bounds() -> Result<(), AllocError> {
596 // fn owned_bitmap_out_of_bounds() -> Result<(), AllocError> {
603 fn bitmap_copy_and_extend() -> Result<(), AllocError> {