| /linux-6.15/rust/pin-init/src/ |
| H A D | alloc.rs | 15 init_from_closure, pin_init_from_closure, InPlaceWrite, Init, PinInit, ZeroableOption, 30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init() 82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 148 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
|
| H A D | lib.rs | 1003 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { interface 1047 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E> 1049 I: PinInit<T, E>, 1102 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> { 1170 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E> 1196 ) -> impl PinInit<T, E> { in pin_init_from_closure() 1283 ) -> impl PinInit<[T; N], E> in pin_init_array_from_fn() 1285 I: PinInit<T, E>, 1319 unsafe impl<T, E> PinInit<T, E> for T { 1339 fn write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E>; in write_pin_init()
|
| H A D | __internal.rs | 39 unsafe impl<T: ?Sized, F, E> PinInit<T, E> for InitClosure<F, T, E> 171 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init() 288 unsafe impl<T: ?Sized> PinInit<T, ()> for AlwaysFail<T> {
|
| /linux-6.15/rust/kernel/ |
| 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() 339 let _ = unsafe { PinInit::<T>::__pinned_init(slot, ptr) }; in pin_init() 351 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init() 372 ) -> impl PinInit<Self, E> { in try_ffi_init()
|
| H A D | init.rs | 141 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit}; 155 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 163 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init()
|
| H A D | driver.rs | 11 use pin_init::{pin_data, pinned_drop, PinInit}; 73 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new() 117 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
|
| H A D | revocable.rs | 83 pub fn new(data: impl PinInit<T>) -> impl PinInit<Self> { in new()
|
| 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()
|
| H A D | prelude.rs | 22 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
|
| H A D | sync.rs | 69 pub fn new_dynamic() -> impl PinInit<Self> { in new_dynamic()
|
| H A D | list.rs | 15 use pin_init::PinInit; 165 pub fn new() -> impl PinInit<Self> { in new() 222 pub fn new() -> impl PinInit<Self> { in new()
|
| /linux-6.15/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 17 use pin_init::{pin_data, pinned_drop, PinInit}; 40 ) -> impl PinInit<Self, error::Error> { in new() 62 inner <- PinInit::<_, error::Error>::pin_chain(Opaque::new(tag_set?), |tag_set| { in new()
|
| /linux-6.15/rust/pin-init/ |
| H A D | README.md | 68 If you want to use [`PinInit`], then you will have to annotate your `struct` with 90 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like 108 To declare an init macro/function you just return an [`impl PinInit<T, E>`]: 119 fn new() -> impl PinInit<Self, Error> { 132 [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure 143 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure}; 176 pub fn new(flags: u32) -> impl PinInit<Self, i32> { 223 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html 224 [`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
|
| /linux-6.15/rust/pin-init/examples/ |
| H A D | linked_list.rs | 32 pub fn new() -> impl PinInit<Self, Infallible> { in new() 41 pub fn insert_next(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_next() 50 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_prev()
|
| H A D | static_init.rs | 33 impl<T, I: PinInit<T>> StaticInit<T, I> { 44 impl<T, I: PinInit<T>> ops::Deref for StaticInit<T, I> { 71 unsafe impl PinInit<CMutex<usize>> for CountInit { impl
|
| H A D | mutex.rs | 75 pub fn new(val: impl PinInit<T>) -> impl PinInit<Self> { in new() 166 fn insert_new(list: &ListHead) -> impl PinInit<Self> + '_ { in insert_new()
|
| H A D | pthread_mutex.rs | 62 pub fn new(data: T) -> impl PinInit<Self, Error> { in new() 63 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new()
|
| /linux-6.15/rust/kernel/sync/ |
| H A D | arc.rs | 35 use pin_init::{self, pin_data, InPlaceWrite, Init, PinInit}; 209 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 695 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 723 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init() 797 init: impl PinInit<T, E>, in pin_init_with()
|
| H A D | condvar.rs | 19 use pin_init::{pin_data, pin_init, PinInit}; 103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
|
| H A D | lock.rs | 14 use pin_init::{pin_data, pin_init, PinInit}; 130 pub fn new(t: T, name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
|
| H A D | poll.rs | 92 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
|
| /linux-6.15/rust/kernel/alloc/ |
| H A D | kbox.rs | 20 use pin_init::{InPlaceWrite, Init, PinInit, ZeroableOption}; 330 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init() 347 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init()
|
| /linux-6.15/rust/kernel/time/ |
| H A D | hrtimer.rs | 73 use pin_init::PinInit; 99 pub fn new(mode: HrTimerMode, clock: ClockId) -> impl PinInit<Self> in new()
|
| /linux-6.15/drivers/block/ |
| H A D | rnull.rs | 42 fn init(_module: &'static ThisModule) -> impl PinInit<Self, Error> { in init()
|
| /linux-6.15/rust/kernel/list/ |
| H A D | arc.rs | 183 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init() 479 pub fn new() -> impl PinInit<Self> { in new()
|