| /rust/kernel/ |
| A D | init.rs | 133 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit}; 155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init() method 226 ::pin_init::try_init!($(&$this in)? $t $(::<$($generics),*>)? { 233 ::pin_init::try_init!($(&$this in)? $t $(::<$($generics),*>)? { 286 ::pin_init::try_pin_init!($(&$this in)? $t $(::<$($generics),*>)? { 293 ::pin_init::try_pin_init!($(&$this in)? $t $(::<$($generics),*>)? {
|
| A D | prelude.rs | 27 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
|
| A D | types.rs | 12 use pin_init::{PinInit, Wrapper, Zeroable}; 369 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| { in ffi_init() 390 pin_init::pin_init_from_closure::<_, E>(move |slot| init_func(Self::cast_into(slot))) in try_ffi_init() 415 fn pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() method
|
| A D | sync.rs | 10 use pin_init; 73 pin_init!(Self { in new_dynamic()
|
| A D | devres.rs | 20 use pin_init::Wrapper; 157 Opaque::pin_init(try_pin_init!(Inner { in new() 357 let data = KBox::pin_init(data, flags)?; in register()
|
| A D | lib.rs | 159 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error>; in init() 163 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error> { in init() 173 unsafe { pin_init::pin_init_from_closure(initer) } in init()
|
| A D | xarray.rs | 14 use pin_init::{pin_data, pin_init, pinned_drop, PinInit}; 94 pin_init!(Self { in new()
|
| A D | revocable.rs | 8 use pin_init::Wrapper; 88 data <- Opaque::pin_init(data), in new()
|
| A D | driver.rs | 11 use pin_init::{pin_data, pinned_drop, PinInit}; 117 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
|
| A D | workqueue.rs | 339 let init = pin_init!(ClosureWork { in try_spawn() 344 self.enqueue(KBox::pin_init(init, flags).map_err(|_| AllocError)?); in try_spawn() 508 pin_init!(Self { in new() 681 pin_init!(Self { in new()
|
| /rust/pin-init/internal/src/ |
| A D | zeroable.rs | 40 new_impl_generics.extend(quote! { : ::pin_init::Zeroable }); in parse_zeroable_derive_input() 54 new_impl_generics.extend(quote! { ::pin_init::Zeroable + }); in parse_zeroable_derive_input() 72 new_impl_generics.extend(quote! { : ::pin_init::Zeroable }); in parse_zeroable_derive_input() 80 ::pin_init::__derive_zeroable!( in derive() 93 ::pin_init::__maybe_derive_zeroable!( in maybe_derive()
|
| A D | pinned_drop.rs | 40 toks.splice(idx..idx, quote!(::pin_init::)); in pinned_drop() 44 quote!(::pin_init::__pinned_drop! { in pinned_drop()
|
| /rust/pin-init/examples/ |
| A D | mutex.rs | 22 use pin_init::*; 79 pin_init!(CMutex { in new() 177 pin_init!(Self { in insert_new() 184 pin_init!(Self { in insert_new() 196 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| A D | linked_list.rs | 15 use pin_init::*; 151 let a = Box::pin_init(ListHead::new())?; in main() 155 let e = Box::pin_init(ListHead::insert_next(&b))?; in main()
|
| A D | big_struct_in_place.rs | 3 use pin_init::*;
|
| A D | static_init.rs | 15 use pin_init::*; 90 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| A D | pthread_mutex.rs | 19 use pin_init::*; 148 use pin_init::*; in main()
|
| /rust/pin-init/ |
| A D | README.md | 57 - directly creating an in-place constructor using the [`pin_init!`] macro, 72 ### Using the [`pin_init!`] macro 81 use pin_init::{pin_data, pin_init, InPlaceInit}; 90 let foo = pin_init!(Foo { 100 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo); 103 For more information see the [`pin_init!`] macro. 111 let mtx: Result<Pin<Arc<CMutex<usize>>>, _> = Arc::pin_init(CMutex::new(42)); 128 buffer: Box::init(pin_init::init_zeroed())?, 149 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure}; 226 [stack]: https://docs.rs/pin-init/latest/pin_init/macro.stack_pin_init.html [all …]
|
| /rust/kernel/sync/ |
| A D | condvar.rs | 19 use pin_init::{pin_data, pin_init, PinInit}; 104 pin_init!(Self { in new()
|
| A D | completion.rs | 81 pin_init!(Self { in new()
|
| A D | lock.rs | 14 use pin_init::{pin_data, pin_init, PinInit}; 131 pin_init!(Self { in new()
|
| A D | poll.rs | 77 pin_init!(Self { in new()
|
| /rust/ |
| A D | Makefile | 15 obj-$(CONFIG_RUST) += bindings.o pin_init.o kernel.o 100 rustdoc-kernel rustdoc-pin_init 137 rustdoc-pin_init: private rustdoc_host = yes 138 rustdoc-pin_init: private rustc_target_flags = --extern pin_init_internal \
|
| /rust/kernel/block/mq/ |
| A D | tag_set.rs | 17 use pin_init::{pin_data, pinned_drop, PinInit};
|
| /rust/pin-init/src/ |
| A D | lib.rs | 780 macro_rules! pin_init { macro 1708 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E>; in pin_init() method 1712 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() method 1719 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() method 1727 fn pin_init<E>(init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() method
|