Home
last modified time | relevance | path

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

123

/linux/rust/kernel/
H A Ddebugfs.rs101 data: impl PinInit<T, E> + 'a,
103 ) -> impl PinInit<File<T>, E> + 'a
168 data: impl PinInit<T, E> + 'a,
169 ) -> impl PinInit<File<T>, E> + 'a
194 data: impl PinInit<T, E> + 'a,
195 ) -> impl PinInit<File<T>, E> + 'a
235 data: impl PinInit<T, E> + 'a, in read_write_file()
237 ) -> impl PinInit<File<T>, E> + 'a
253 data: impl PinInit<T, E> + 'a,
254 ) -> impl PinInit<Fil
[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.rs91 //! pub fn new(flags: u32) -> impl PinInit<Self, Error> {
132 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()
259 /// fn new() -> impl PinInit<Self, Error> {
H A Dplatform.rs228 ) -> impl PinInit<Self, Error>; in probe()
341 handler: impl PinInit<T, Error> + 'a,
342 ) -> impl PinInit<irq::$reg_type<T>, Error> + 'a {
370 handler: impl PinInit<T, Error> + 'a,
371 ) -> impl PinInit<irq::$reg_type<T>, Error> + 'a {
H A Ddevres.rs127 pub fn new<E>(dev: &Device<Bound>, data: impl PinInit<T, E>) -> Result<Self>
332 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register_foreign()
H A Drevocable.rs85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new()
H A Dconfigfs.rs38 //! fn init(_module: &'static ThisModule) -> impl PinInit<Self, Error> {
66 //! fn new() -> impl PinInit<Self, Error> {
150 data: impl PinInit<Data, Error>, in new()
151 ) -> impl PinInit<Self, Error> { in new()
260 data: impl PinInit<Data, Error>, in new()
261 ) -> impl PinInit<Self, Error> { in new()
501 fn make_group(&self, name: &CStr) -> Result<impl PinInit<Group<Self::Child>, Error>>;
H A Ddriver.rs218 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new()
264 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
/linux/rust/pin-init/src/
H A Dlib.rs924 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { interface
968 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
970 I: PinInit<T, E>,
1023 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
1091 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>
1117 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1146 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init()
1236 ) -> impl PinInit<[T; N], E> in pin_init_array_from_fn()
1238 I: PinInit<T, E>,
1288 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.rs68 /// ) -> impl PinInit<Self, Error> {
89 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a {
101 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a {
131 /// ) -> impl PinInit<Self, Error> {
152 pub fn iomap(self) -> impl PinInit<Devres<IoMem<0>>, Error> + 'a {
158 pub fn iomap_exclusive(self) -> impl PinInit<Devres<ExclusiveIoMem<0>>, Error> + 'a {
206 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a {
274 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in drop()
/linux/samples/rust/
H A Drust_driver_auxiliary.rs39 fn probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe()
73 fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe()
115 fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> { in init()
H A Drust_debugfs.rs126 ) -> impl PinInit<Self, Error> {
141 fn build_counter(dir: &Dir) -> impl PinInit<File<Atomic<usize>>> + '_ { in new()
145 fn build_inner(dir: &Dir) -> impl PinInit<File<Mutex<Inner>>> + '_ { in new()
149 fn new(pdev: &platform::Device<Core>) -> impl PinInit<Self, Error> + '_ { in new()
H A Drust_debugfs_scoped.rs113 fn init(device_dir: Dir) -> impl PinInit<Self> {
129 fn init_control(base_dir: &Dir, dyn_dirs: Dir) -> impl PinInit<Scope<ModuleData>> + '_ { in init_control()
/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()
/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<
[all...]
/linux/rust/kernel/irq/
H A Drequest.rs203 handler: impl PinInit<T, Error> + 'a, in new()
204 ) -> impl PinInit<Self, Error> + 'a { in new()
423 handler: impl PinInit<T, Error> + 'a, in new()
424 ) -> impl PinInit<Self, Error> + 'a { in new()
/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.rs33 pub fn new() -> impl PinInit<Self> {
43 pub fn insert_next(list: &ListHead) -> impl PinInit<Self> + '_ {
52 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self> + '_ {
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/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