| /linux/rust/kernel/ |
| H A D | debugfs.rs | 101 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 D | types.rs | 12 use pin_init::{PinInit, Wrapper, Zeroable}; 373 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init() 394 ) -> impl PinInit<Self, E> { in get() 423 fn pin_init<E>(init: impl PinInit<T, E>) -> impl PinInit<Self, E> {
|
| H A D | init.rs | 91 //! 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() 155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init() 263 /// fn new() -> impl PinInit<Self, Error> {
|
| H A D | platform.rs | 233 ) -> impl PinInit<Self::Data<'bound>, Error> + 'bound; in probe() 352 handler: impl PinInit<T, Error> + 'a, 353 ) -> impl PinInit<irq::$reg_type<'a, T>, Error> + 'a { 389 handler: impl PinInit<T, Error> + 'a, 390 ) -> impl PinInit<irq::$reg_type<'a, T>, Error> + 'a {
|
| H A D | revocable.rs | 94 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> {
|
| H A D | configfs.rs | 38 //! 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 D | devres.rs | 205 pub fn new<E>(dev: &Device<Bound>, data: impl PinInit<T, E>) -> Result<Self> in new() 431 data: impl PinInit<F::Of<'a>, E>, in new() 549 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
|
| H A D | driver.rs | 33 //! ) -> impl PinInit<Self::Data<'bound>, Error> + 'bound; 55 //! `impl PinInit<Self::Data<'bound>, Error>`, i.e. the driver's private data. The bus 228 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> in new() 277 ) -> impl ::pin_init::PinInit<Self, $crate::error::Error> {
|
| H A D | xarray.rs | 20 use pin_init::{pin_data, pin_init, pinned_drop, PinInit}; 95 pub fn new(kind: AllocKind) -> impl PinInit<Self> { in new()
|
| /linux/rust/pin-init/src/ |
| H A D | lib.rs | 905 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { trait 969 pub unsafe fn raw_init<T>(slot: *mut T, init: impl PinInit<T>) { in raw_init() 984 pub unsafe fn raw_try_init<T, E>(slot: *mut T, init: impl PinInit<T, E>) -> Result<(), E> { in raw_try_init() 996 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E> 998 I: PinInit<T, E>, 1039 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> { 1090 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E> 1122 unsafe impl<T: ?Sized, F, E> PinInit<T, E> for InitClosure<F, T> 1147 ) -> impl PinInit<T, E> { in pin_init_from_closure() 1177 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init() [all …]
|
| 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() 39 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init() 84 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 102 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 152 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.rs | 175 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { 288 pub fn init<E>(self, init: impl PinInit<T, E>) -> Result<DropGuard<Pinned, T>, E> { 404 unsafe impl<T: ?Sized> PinInit<T, ()> for AlwaysFail<T> {
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 74 /// ) -> impl PinInit<Self, Error> + 'bound { 134 /// ) -> impl PinInit<Self, Error> + 'bound {
|
| /linux/samples/rust/ |
| H A D | rust_driver_auxiliary.rs | 47 ) -> impl PinInit<Self, Error> + 'bound { in probe() 102 ) -> impl PinInit<Self::Data<'bound>, Error> + 'bound { in connect() 188 fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> {
|
| H A D | rust_debugfs.rs | 126 ) -> impl PinInit<Self, Error> + 'bound { 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() 151 ) -> impl PinInit<Self, Error> + use<'a, 'b> { in new()
|
| H A D | rust_debugfs_scoped.rs | 116 fn init(device_dir: Dir) -> impl PinInit<Self> { 132 fn init_control(base_dir: &Dir, dyn_dirs: Dir) -> impl PinInit<Scope<ModuleData>> + '_ {
|
| /linux/rust/pin-init/ |
| H A D | README.md | 86 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}; 193 pub fn new(flags: u32) -> impl PinInit<Self, i32> { 238 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html 239 [`impl PinInit< [all...] |
| /linux/rust/pin-init/examples/ |
| H A D | static_init.rs | 35 impl<T, I: PinInit<T>> StaticInit<T, I> { 46 impl<T, I: PinInit<T>> ops::Deref for StaticInit<T, I> { 73 unsafe impl PinInit<CMutex<usize>> for CountInit { 74 unsafe impl PinInit<CMutex<usize>> for CountInit { global() impl
|
| H A D | linked_list.rs | 32 pub fn new() -> impl PinInit<Self> { 42 pub fn insert_next(list: &ListHead) -> impl PinInit<Self> + '_ { 51 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self> + '_ {
|
| H A D | mutex.rs | 77 pub fn new(val: impl PinInit<T>) -> impl PinInit<Self> { 166 fn insert_new(list: &ListHead) -> impl PinInit<Self> + '_ {
|
| /linux/rust/kernel/irq/ |
| H A D | request.rs | 180 handler: impl PinInit<T, Error> + 'a, 181 ) -> impl PinInit<Self, Error> + 'a 397 handler: impl PinInit<T, Error> + 'a, 398 ) -> impl PinInit<Self, Error> + 'a
|
| /linux/rust/kernel/sync/ |
| H A D | lock.rs | 14 use pin_init::{pin_data, pin_init, PinInit, Wrapper}; 132 t: impl PinInit<T>, in new() 135 ) -> impl PinInit<Self> { in new()
|
| 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()
|
| /linux/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()
|
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 339 /// fn new() -> impl PinInit<Self, Error> { in pin_slice() 365 Item: PinInit<T, E>, in pin_slice() 472 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { 489 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E>
|