Searched refs:boxed (Results 1 – 6 of 6) sorted by relevance
503 let boxed: KBox<Opaque<bindings::auxiliary_device>> = KBox::zeroed(GFP_KERNEL)?;504 let adev = boxed.get();522 let _ = KBox::into_raw(boxed);349 let boxed = KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)?; new() localVariable
560 let boxed: Option<Token![box]> = input.parse()?; in field_pat() localVariable564 let member = if boxed.is_some() || by_ref.is_some() || mutability.is_some() { in field_pat()570 if boxed.is_none() && by_ref.is_none() && mutability.is_none() && input.peek(Token![:]) in field_pat()586 let pat = if boxed.is_some() { in field_pat()
4 use alloc::{boxed::Box, sync::Arc};
390 ) -> Result<alloc::boxed::Box<T>, AllocError> in new_box() 468 Ok(unsafe { alloc::boxed::Box::from_raw(ptr.as_ptr()) }) in new_box()
247 [`Box<T>`]: https://doc.rust-lang.org/stable/alloc/boxed/struct.Box.html
399 use alloc::{boxed::Box, vec::Vec};3855 // If `T` is a ZST, then return a proper boxed instance of it. There is3870 // [1] Per https://doc.rust-lang.org/1.81.0/std/boxed/index.html#memory-layout:3891 /// Creates a `Box<[Self]>` (a boxed slice) from zeroed bytes.