Home
last modified time | relevance | path

Searched refs:PinInit (Results 1 – 25 of 35) sorted by relevance

12

/rust/pin-init/src/
A Dlib.rs1101 I: PinInit<T, E>,
1248 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1278 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init()
1367 ) -> impl PinInit<[T; N], E> in pin_init_array_from_fn()
1369 I: PinInit<T, E>,
1404 unsafe impl<T> PinInit<T> for T {
1426 unsafe impl<T, E> PinInit<T, E> for Result<T, E> {
1708 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E>; in pin_init()
1712 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init()
1719 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init()
[all …]
A Dalloc.rs15 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()
A D__internal.rs39 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()
289 unsafe impl<T: ?Sized> PinInit<T, ()> for AlwaysFail<T> {
/rust/kernel/io/
A Dmem.rs77 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized()
89 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a { in iomap_exclusive_sized()
135 pub fn iomap(self) -> impl PinInit<Devres<IoMem<0>>, Error> + 'a { in iomap()
141 pub fn iomap_exclusive(self) -> impl PinInit<Devres<ExclusiveIoMem<0>>, Error> + 'a { in iomap_exclusive()
189 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new()
257 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new()
/rust/kernel/
A Dtypes.rs12 use pin_init::{PinInit, Wrapper, Zeroable};
365 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init()
386 ) -> impl PinInit<Self, E> { in try_ffi_init()
415 fn pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init()
421 unsafe { PinInit::<T, E>::__pinned_init(slot, ptr) } in pin_init()
A Dinit.rs133 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
147 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init()
A Ddriver.rs11 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> {
A Ddevres.rs131 data: impl PinInit<T, E> + 'a, in new()
132 ) -> impl PinInit<Self, Error> + 'a in new()
352 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
A Drevocable.rs85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new()
A Dprelude.rs27 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
A Dsync.rs72 pub fn new_dynamic() -> impl PinInit<Self> { in new_dynamic()
A Dlib.rs159 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()
A Dxarray.rs14 use pin_init::{pin_data, pin_init, pinned_drop, PinInit};
89 pub fn new(kind: AllocKind) -> impl PinInit<Self> { in new()
A Dconfigfs.rs151 data: impl PinInit<Data, Error>, in new()
152 ) -> impl PinInit<Self, Error> { in new()
261 data: impl PinInit<Data, Error>, in new()
262 ) -> impl PinInit<Self, Error> { in new()
502 fn make_group(&self, name: &CStr) -> Result<impl PinInit<Group<Self::Child>, Error>>; in make_group()
/rust/kernel/block/mq/
A Dtag_set.rs17 use pin_init::{pin_data, pinned_drop, PinInit};
40 ) -> impl PinInit<Self, error::Error> { in new()
/rust/pin-init/examples/
A Dstatic_init.rs36 impl<T, I: PinInit<T>> StaticInit<T, I> {
47 impl<T, I: PinInit<T>> ops::Deref for StaticInit<T, I> {
74 unsafe impl PinInit<CMutex<usize>> for CountInit { impls
A Dlinked_list.rs34 pub fn new() -> impl PinInit<Self, Infallible> { in new()
44 pub fn insert_next(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_next()
53 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_prev()
A Dmutex.rs78 pub fn new(val: impl PinInit<T>) -> impl PinInit<Self> { in new()
174 fn insert_new(list: &ListHead) -> impl PinInit<Self> + '_ { in insert_new()
A Dpthread_mutex.rs66 pub fn new(data: T) -> impl PinInit<Self, Error> { in new()
67 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new()
/rust/kernel/sync/
A Dcompletion.rs80 pub fn new() -> impl PinInit<Self> { in new()
A Dcondvar.rs19 use pin_init::{pin_data, pin_init, PinInit};
103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
A Dpoll.rs76 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
A Dlock.rs14 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()
A Darc.rs37 use pin_init::{self, pin_data, InPlaceWrite, Init, PinInit};
211 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
726 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
754 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
828 init: impl PinInit<T, E>, in pin_init_with()
/rust/pin-init/
A DREADME.md74 If you want to use [`PinInit`], then you will have to annotate your `struct` with
96 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like
114 To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
125 fn new() -> impl PinInit<Self, Error> {
138 [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure
149 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
182 pub fn new(flags: u32) -> impl PinInit<Self, i32> {
227 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
228 [`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html

Completed in 28 milliseconds

12