Home
last modified time | relevance | path

Searched refs:pin_init_from_closure (Results 1 – 8 of 8) sorted by relevance

/linux/rust/kernel/
H A Dinit.rs133 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
161 pin_init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in pin_init()
H A Dtypes.rs369 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()
H A Dlib.rs173 unsafe { pin_init::pin_init_from_closure(initer) } in init()
/linux/rust/pin-init/src/
H A Dalloc.rs15 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 Dlib.rs842 @construct_closure(pin_init_from_closure),
1246 pub const unsafe fn pin_init_from_closure<T: ?Sized, E>( in pin_init_from_closure() function
1281 let res = unsafe { pin_init_from_closure(|ptr: *mut U| init.__pinned_init(ptr.cast::<T>())) }; in cast_pin_init()
1390 unsafe { pin_init_from_closure(init) }
/linux/rust/pin-init/
H A DREADME.md59 - using the unsafe function [`pin_init_from_closure()`] to manually create an initializer.
137 [`pin_init_from_closure()`] comes in. This `unsafe` function allows you to create a
149 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
188 pin_init_from_closure(move |slot: *mut Self| {
220 For more information on how to use [`pin_init_from_closure()`], take a look at the uses inside
/linux/rust/pin-init/examples/
H A Dpthread_mutex.rs99 unsafe { pin_init_from_closure(init) } in new()
H A Dmutex.rs84 pin_init_from_closure(|slot: *mut UnsafeCell<T>| { in new()