Searched refs:pin_init_from_closure (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/rust/kernel/ |
| H A D | init.rs | 141 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit}; 169 pin_init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in pin_init()
|
| H A D | types.rs | 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 | lib.rs | 132 unsafe { pin_init::pin_init_from_closure(initer) } in init()
|
| /linux-6.15/rust/pin-init/src/ |
| H A D | alloc.rs | 15 init_from_closure, pin_init_from_closure, InPlaceWrite, Init, PinInit, ZeroableOption, 41 pin_init_from_closure(|slot| match init.__pinned_init(slot) { in pin_init()
|
| H A D | lib.rs | 790 @construct_closure(pin_init_from_closure), 1194 pub const unsafe fn pin_init_from_closure<T: ?Sized, E>( in pin_init_from_closure() function 1306 unsafe { pin_init_from_closure(init) }
|
| /linux-6.15/rust/pin-init/ |
| H A D | README.md | 53 - using the unsafe function [`pin_init_from_closure()`] to manually create an initializer. 131 [`pin_init_from_closure()`] comes in. This `unsafe` function allows you to create a 143 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure}; 182 pin_init_from_closure(move |slot: *mut Self| { 214 For more information on how to use [`pin_init_from_closure()`], take a look at the uses inside
|
| /linux-6.15/rust/pin-init/examples/ |
| H A D | pthread_mutex.rs | 95 unsafe { pin_init_from_closure(init) } in new()
|
| H A D | mutex.rs | 81 pin_init_from_closure(|slot: *mut UnsafeCell<T>| { in new()
|