Home
last modified time | relevance | path

Searched refs:pin_init (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.15/rust/kernel/
H A Dinit.rs141 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
163 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init() method
234 ::pin_init::try_init!($(&$this in)? $t $(::<$($generics),* $(,)?>)? {
241 ::pin_init::try_init!($(&$this in)? $t $(::<$($generics),* $(,)?>)? {
294 ::pin_init::try_pin_init!($(&$this in)? $t $(::<$($generics),* $(,)?>)? {
301 ::pin_init::try_pin_init!($(&$this in)? $t $(::<$($generics),* $(,)?>)? {
H A Dtypes.rs12 use pin_init::{PinInit, Zeroable};
333 pub fn pin_init(slot: impl PinInit<T>) -> impl PinInit<Self> { in pin_init() method
355 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| { in ffi_init()
376 pin_init::pin_init_from_closure::<_, E>(move |slot| init_func(Self::raw_get(slot))) in try_ffi_init()
H A Dprelude.rs22 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
H A Dlib.rs118 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error>; in init()
122 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error> { in init()
132 unsafe { pin_init::pin_init_from_closure(initer) } in init()
H A Dsync.rs10 use pin_init;
70 pin_init!(Self { in new_dynamic()
H A Drevocable.rs84 pin_init!(Self { in new()
86 data <- Opaque::pin_init(data), in new()
H A Ddevres.rs103 let inner = Arc::pin_init( in new()
104 pin_init!( DevresInner { in new()
H A Ddriver.rs11 use pin_init::{pin_data, pinned_drop, PinInit};
117 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
H A Dworkqueue.rs217 let init = pin_init!(ClosureWork { in try_spawn()
222 self.enqueue(KBox::pin_init(init, flags).map_err(|_| AllocError)?); in try_spawn()
376 pin_init!(Self { in new()
/linux-6.15/rust/pin-init/internal/src/
H A Dzeroable.rs33 new_impl_generics.extend(quote! { : ::pin_init::Zeroable }); in derive()
47 new_impl_generics.extend(quote! { ::pin_init::Zeroable + }); in derive()
65 new_impl_generics.extend(quote! { : ::pin_init::Zeroable }); in derive()
68 ::pin_init::__derive_zeroable!( in derive()
H A Dpinned_drop.rs40 toks.splice(idx..idx, quote!(::pin_init::)); in pinned_drop()
44 quote!(::pin_init::__pinned_drop! { in pinned_drop()
/linux-6.15/rust/pin-init/
H A DREADME.md51 - directly creating an in-place constructor using the [`pin_init!`] macro,
66 ### Using the [`pin_init!`] macro
75 use pin_init::{pin_data, pin_init, InPlaceInit};
84 let foo = pin_init!(Foo {
94 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
97 For more information see the [`pin_init!`] macro.
105 let mtx: Result<Pin<Arc<CMutex<usize>>>, _> = Arc::pin_init(CMutex::new(42));
122 buffer: Box::init(pin_init::zeroed())?,
143 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
220 [stack]: https://docs.rs/pin-init/latest/pin_init/macro.stack_pin_init.html
[all …]
/linux-6.15/rust/pin-init/examples/
H A Dmutex.rs20 use pin_init::*;
76 pin_init!(CMutex { in new()
167 pin_init!(Self { in insert_new()
181 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
H A Dlinked_list.rs14 use pin_init::*;
142 let a = Box::pin_init(ListHead::new())?; in main()
146 let e = Box::pin_init(ListHead::insert_next(&b))?; in main()
H A Dstatic_init.rs13 use pin_init::*;
89 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
H A Dpthread_mutex.rs17 use pin_init::*;
142 use pin_init::*; in main()
H A Dbig_struct_in_place.rs3 use pin_init::*;
/linux-6.15/rust/
H A DMakefile15 obj-$(CONFIG_RUST) += bindings.o pin_init.o kernel.o
90 rustdoc-kernel rustdoc-pin_init
126 rustdoc-pin_init: private rustdoc_host = yes
127 rustdoc-pin_init: private rustc_target_flags = --extern pin_init_internal \
/linux-6.15/rust/kernel/sync/
H A Dcondvar.rs19 use pin_init::{pin_data, pin_init, PinInit};
104 pin_init!(Self { in new()
H A Dlock.rs14 use pin_init::{pin_data, pin_init, PinInit};
131 pin_init!(Self { in new()
H A Dpoll.rs93 pin_init!(Self { in new()
/linux-6.15/rust/kernel/time/
H A Dhrtimer.rs73 use pin_init::PinInit;
103 pin_init!(Self { in new()
/linux-6.15/drivers/gpu/nova-core/
H A Ddriver.rs38 let this = KBox::pin_init( in probe()
/linux-6.15/drivers/block/
H A Drnull.rs47 let tagset = Arc::pin_init(TagSet::new(1, 256, 1), flags::GFP_KERNEL)?; in init()
/linux-6.15/rust/kernel/block/mq/
H A Dtag_set.rs17 use pin_init::{pin_data, pinned_drop, PinInit};

12