| /linux-6.15/rust/kernel/ |
| H A D | init.rs | 141 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 D | types.rs | 12 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 D | prelude.rs | 22 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
|
| H A D | lib.rs | 118 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 D | sync.rs | 10 use pin_init; 70 pin_init!(Self { in new_dynamic()
|
| H A D | revocable.rs | 84 pin_init!(Self { in new() 86 data <- Opaque::pin_init(data), in new()
|
| H A D | devres.rs | 103 let inner = Arc::pin_init( in new() 104 pin_init!( DevresInner { in new()
|
| H A D | driver.rs | 11 use pin_init::{pin_data, pinned_drop, PinInit}; 117 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
|
| H A D | workqueue.rs | 217 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 D | zeroable.rs | 33 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 D | pinned_drop.rs | 40 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 D | README.md | 51 - 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 D | mutex.rs | 20 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 D | linked_list.rs | 14 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 D | static_init.rs | 13 use pin_init::*; 89 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| H A D | pthread_mutex.rs | 17 use pin_init::*; 142 use pin_init::*; in main()
|
| H A D | big_struct_in_place.rs | 3 use pin_init::*;
|
| /linux-6.15/rust/ |
| H A D | Makefile | 15 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 D | condvar.rs | 19 use pin_init::{pin_data, pin_init, PinInit}; 104 pin_init!(Self { in new()
|
| H A D | lock.rs | 14 use pin_init::{pin_data, pin_init, PinInit}; 131 pin_init!(Self { in new()
|
| H A D | poll.rs | 93 pin_init!(Self { in new()
|
| /linux-6.15/rust/kernel/time/ |
| H A D | hrtimer.rs | 73 use pin_init::PinInit; 103 pin_init!(Self { in new()
|
| /linux-6.15/drivers/gpu/nova-core/ |
| H A D | driver.rs | 38 let this = KBox::pin_init( in probe()
|
| /linux-6.15/drivers/block/ |
| H A D | rnull.rs | 47 let tagset = Arc::pin_init(TagSet::new(1, 256, 1), flags::GFP_KERNEL)?; in init()
|
| /linux-6.15/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 17 use pin_init::{pin_data, pinned_drop, PinInit};
|