Home
last modified time | relevance | path

Searched refs:try_pin_init (Results 1 – 25 of 39) sorted by relevance

12

/linux/rust/kernel/
H A Dinit.rs146 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() method
162 Self::try_pin_init(init, flags) in pin_init()
188 /// The syntax is identical to [`try_pin_init!`]. If you want to specify a custom error,
190 /// The safety caveats from [`try_pin_init!`] also apply:
218 /// [`try_pin_init!`]: crate::try_pin_init!
260 /// try_pin_init!(Self {
273 macro_rules! try_pin_init {
281 macro_rules! try_pin_init { global() macro
H A Ddriver.rs219 try_pin_init!(Self { in new()
265 $crate::try_pin_init!(Self {
H A Dscatterlist.rs362 Ok(try_pin_init!(&this in Self { in new()
438 try_pin_init!(Self { in new()
H A Dprelude.rs40 pub use super::{try_init, try_pin_init};
H A Dsoc.rs118 try_pin_init!(Self { in new()
H A Ddebugfs.rs117 try_pin_init! { in create_file()
439 try_pin_init! { in new()
463 try_pin_init! { in new()
H A Dconfigfs.rs152 try_pin_init!(Self { in new()
262 try_pin_init!(Self { in new()
361 let child_group = <Arc<Group<Child>> as InPlaceInit<Group<Child>>>::try_pin_init( in make_group()
H A Drevocable.rs86 try_pin_init!(Self { in new()
/linux/rust/pin-init/src/
H A Dalloc.rs30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() method
46 Self::try_pin_init(init) in pin_init()
82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() method
100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() method
/linux/samples/rust/
H A Drust_configfs.rs36 try_pin_init!(Self { in new()
61 try_pin_init!(Self { in init()
130 try_pin_init!(Self {}) in new()
177 try_pin_init!(Self {}) in new()
H A Drust_misc_device.rs136 try_pin_init!(Self { in init()
163 KBox::try_pin_init( in open()
164 try_pin_init! { in open()
H A Drust_driver_auxiliary.rs74 try_pin_init!(Self { in probe()
116 try_pin_init!(Self { in init()
H A Drust_i2c_client.rs121 kernel::try_pin_init!( Self { in probe()
H A Drust_soc.rs65 Ok(try_pin_init!(SampleSocDriver { in probe()
H A Drust_driver_pci.rs113 Ok(try_pin_init!(Self { in probe()
H A Drust_dma.rs79 Ok(try_pin_init!(Self { in probe()
/linux/rust/kernel/irq/
H A Drequest.rs205 try_pin_init!(&this in Self { in new()
209 try_pin_init!(RegistrationInner { in new()
425 try_pin_init!(&this in Self { in new()
429 try_pin_init!(RegistrationInner { in new()
/linux/drivers/gpu/drm/tyr/
H A Dfile.rs21 KBox::try_pin_init(try_pin_init!(Self {}), GFP_KERNEL) in open()
H A Dgem.rs16 try_pin_init!(TyrObject {}) in new()
/linux/rust/pin-init/examples/
H A Dlinked_list.rs
H A Dpthread_mutex.rs155 let mtx: Pin<Arc<PThreadMutex<usize>>> = Arc::try_pin_init(PThreadMutex::new(0)).unwrap(); in main()
/linux/rust/kernel/block/mq/
H A Dtag_set.rs13 prelude::try_pin_init,
61 try_pin_init!(TagSet { in new()
/linux/drivers/block/rnull/
H A Dconfigfs.rs26 kernel::configfs::Subsystem::new(c"rnull", item_type, try_pin_init!(Config {})) in subsystem()
68 try_pin_init!( DeviceConfig { in make_group()
H A Drnull.rs39 try_pin_init!(Self { in init()
/linux/rust/kernel/sync/
H A Darc.rs211 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() method
215 UniqueArc::try_pin_init(init, flags).map(|u| u.into()) in try_pin_init()
713 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() method

12