Home
last modified time | relevance | path

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

123

/linux/rust/kernel/
H A Ddebugfs.rs77 data: impl PinInit<T, E> + 'a, in create_file()
79 ) -> impl PinInit<File<T>, E> + 'a in create_file()
147 data: impl PinInit<T, E> + 'a, in read_only_file()
148 ) -> impl PinInit<File<T>, E> + 'a in read_only_file()
174 data: impl PinInit<T, E> + 'a, in read_binary_file()
175 ) -> impl PinInit<File<T>, E> + 'a in read_binary_file()
211 data: impl PinInit<T, E> + 'a, in read_callback_file()
213 ) -> impl PinInit<File<T>, E> + 'a in read_callback_file()
229 data: impl PinInit<T, E> + 'a, in read_write_file()
230 ) -> impl PinInit<File<T>, E> + 'a in read_write_file()
[all …]
H A Dtypes.rs12 use pin_init::{PinInit, Wrapper, Zeroable};
364 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init()
385 ) -> impl PinInit<Self, E> { in try_ffi_init()
414 fn pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init()
420 unsafe { PinInit::<T, E>::__pinned_init(slot, ptr) } in pin_init()
H A Dinit.rs132 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
146 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
154 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init()
H A Ddriver.rs96 use pin_init::{pin_data, pinned_drop, PinInit};
158 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new()
202 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
H A Dplatform.rs197 ) -> impl PinInit<Self, Error>; in probe()
310 handler: impl PinInit<T, Error> + 'a,
311 ) -> impl PinInit<irq::$reg_type<T>, Error> + 'a {
339 handler: impl PinInit<T, Error> + 'a,
340 ) -> impl PinInit<irq::$reg_type<T>, Error> + 'a {
H A Ddevres.rs144 data: impl PinInit<T, E> + 'a, in new()
145 ) -> impl PinInit<Self, Error> + 'a in new()
371 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
H A Drevocable.rs85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new()
H 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()
/linux/rust/pin-init/src/
H A Dlib.rs1057 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { trait
1101 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
1103 I: PinInit<T, E>,
1156 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
1224 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>
1250 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1280 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init()
1369 ) -> impl PinInit<[T; N], E> in pin_init_array_from_fn()
1371 I: PinInit<T, E>,
1421 pub fn pin_init_scope<T, E, F, I>(make_init: F) -> impl PinInit<T, E> in pin_init_scope()
[all …]
H 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()
H 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> {
/linux/rust/kernel/io/
H A Dmem.rs85 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized()
97 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a { in iomap_exclusive_sized()
143 pub fn iomap(self) -> impl PinInit<Devres<IoMem<0>>, Error> + 'a { in iomap()
149 pub fn iomap_exclusive(self) -> impl PinInit<Devres<ExclusiveIoMem<0>>, Error> + 'a { in iomap_exclusive()
197 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new()
265 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new()
/linux/samples/rust/
H A Drust_driver_auxiliary.rs19 use pin_init::PinInit;
38 fn probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe()
72 fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe()
114 fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> { in init()
H A Drust_debugfs.rs112 ) -> impl PinInit<Self, Error> { in probe()
127 fn build_counter(dir: &Dir) -> impl PinInit<File<Atomic<usize>>> + '_ { in build_counter()
131 fn build_inner(dir: &Dir) -> impl PinInit<File<Mutex<Inner>>> + '_ { in build_inner()
135 fn new(pdev: &platform::Device<Core>) -> impl PinInit<Self, Error> + '_ { in new()
/linux/rust/kernel/pci/
H A Dirq.rs181 handler: impl PinInit<T, Error> + 'a, in request_irq()
182 ) -> impl PinInit<irq::Registration<T>, Error> + 'a { in request_irq()
196 handler: impl PinInit<T, Error> + 'a, in request_threaded_irq()
197 ) -> impl PinInit<irq::ThreadedRegistration<T>, Error> + 'a { in request_threaded_irq()
H A Dio.rs132 ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a { in iomap_region_sized()
141 ) -> impl PinInit<Devres<Bar>, Error> + 'a { in iomap_region()
/linux/rust/pin-init/
H A DREADME.md86 If you want to use [`PinInit`], then you will have to annotate your `struct` with
108 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like
126 To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
137 fn new() -> impl PinInit<Self, Error> {
150 [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure
161 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
194 pub fn new(flags: u32) -> impl PinInit<Self, i32> {
239 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
240 [`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
/linux/rust/pin-init/examples/
H 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 { impl
H 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()
H 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()
/linux/rust/kernel/sync/
H A Dlock.rs14 use pin_init::{pin_data, pin_init, PinInit, Wrapper};
132 t: impl PinInit<T>, in new()
135 ) -> impl PinInit<Self> { in new()
H 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()
/linux/rust/kernel/block/mq/
H A Dtag_set.rs17 use pin_init::{pin_data, pinned_drop, PinInit};
40 ) -> impl PinInit<Self, error::Error> { in new()
/linux/drivers/block/rnull/
H A Dconfigfs.rs16 use pin_init::PinInit;
18 pub(crate) fn subsystem() -> impl PinInit<kernel::configfs::Subsystem<Config>, Error> { in subsystem()
52 ) -> Result<impl PinInit<configfs::Group<DeviceConfig>, Error>> { in make_group()
/linux/rust/kernel/alloc/
H A Dkbox.rs23 use pin_init::{InPlaceWrite, Init, PinInit, ZeroableOption};
343 Item: PinInit<T, E>, in pin_slice()
448 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
465 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init()

123