Home
last modified time | relevance | path

Searched full:boxed (Results 1 – 13 of 13) sorted by relevance

/linux/rust/kernel/
H A Dauxiliary.rs490 let boxed: KBox<Opaque<bindings::auxiliary_device>> = KBox::zeroed(GFP_KERNEL)?;
491 let adev = boxed.get();
509 let _ = KBox::into_raw(boxed);
349 let boxed = KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)?; new() localVariable
H A Ddma.rs373 /// like a normal boxed allocation (e.g. direct reads, writes, and mutable slices are all safe).
/linux/rust/syn/
H A Dpat.rs560 let boxed: Option<Token![box]> = input.parse()?; in field_pat() localVariable
564 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()
H A Dparse_quote.rs108 /// -> ::std::pin::Pin<::std::boxed::Box<dyn ::std::future::Future<Output = #ret>>>
/linux/rust/pin-init/src/
H A Dalloc.rs4 use alloc::{boxed::Box, sync::Arc};
H A Dlib.rs258 #![cfg_attr(not(kernel), doc = "[`Box<T>`]: alloc::alloc::boxed::Box")]
909 #[cfg_attr(not(kernel), doc = "[`Box<T>`]: alloc::alloc::boxed::Box")]
1043 #[cfg_attr(not(kernel), doc = "[`Box<T>`]: alloc::alloc::boxed::Box")]
/linux/arch/s390/include/asm/
H A Dccwdev.h169 /* Allow forced onlining of boxed devices. */
/linux/rust/kernel/sync/
H A Dcondvar.rs71 /// /// Allocates a new boxed `Example`.
/linux/rust/pin-init/
H A DREADME.md247 [`Box<T>`]: https://doc.rust-lang.org/stable/alloc/boxed/struct.Box.html
/linux/drivers/s390/cio/
H A Ddevice_fsm.c347 CIO_MSG_EVENT(0, "Boxed device %04x on subchannel %04x\n", in ccw_device_done()
693 * Handle path verification event in boxed state.
/linux/rust/zerocopy/src/util/
H A Dmod.rs389 ) -> Result<alloc::boxed::Box<T>, AllocError> in new_box()
467 Ok(unsafe { alloc::boxed::Box::from_raw(ptr.as_ptr()) }) in new_box()
/linux/rust/kernel/alloc/
H A Dkbox.rs347 /// // Allocate a boxed slice of 10 `Example`s. in pin_slice()
/linux/rust/zerocopy/src/
H A Dlib.rs407 use alloc::{boxed::Box, vec::Vec};
3620 // If `T` is a ZST, then return a proper boxed instance of it. There is in new_box_zeroed()
3635 // [1] Per https://doc.rust-lang.org/1.81.0/std/boxed/index.html#memory-layout: in new_box_zeroed()
3656 /// Creates a `Box<[Self]>` (a boxed slice) from zeroed bytes.