Searched refs:ArcBorrow (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/rust/kernel/sync/ |
| H A D | arc.rs | 303 unsafe { ArcBorrow::new(self.ptr) } in as_arc_borrow() 375 type Borrowed<'a> = ArcBorrow<'a, T>; 400 unsafe { ArcBorrow::new(inner) } in borrow() 533 pub struct ArcBorrow<'a, T: ?Sized + 'a> { struct 542 for ArcBorrow<'_, T> 546 impl<T: ?Sized> Clone for ArcBorrow<'_, T> { implementation 552 impl<T: ?Sized> Copy for ArcBorrow<'_, T> {} implementation 554 impl<T: ?Sized> ArcBorrow<'_, T> { impl 592 impl<T: ?Sized> From<ArcBorrow<'_, T>> for Arc<T> { 593 fn from(b: ArcBorrow<'_, T>) -> Self { in from() [all …]
|
| /linux-6.15/rust/kernel/time/hrtimer/ |
| H A D | arc.rs | 10 use crate::sync::ArcBorrow; 75 type CallbackTarget<'a> = ArcBorrow<'a, T>; 96 let receiver = unsafe { ArcBorrow::from_raw(data_ptr) }; in run()
|
| /linux-6.15/rust/kernel/ |
| H A D | list.rs | 10 use crate::sync::ArcBorrow; 548 type Item = ArcBorrow<'a, T>; 550 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next() 577 Some(unsafe { ArcBorrow::from_raw(item) }) in next() 897 pub fn arc(&self) -> ArcBorrow<'_, T> { in arc() 910 unsafe { ArcBorrow::from_raw(me) } in arc() 942 type Item = ArcBorrow<'a, T>;
|
| H A D | sync.rs | 19 pub use arc::{Arc, ArcBorrow, UniqueArc};
|
| /linux-6.15/rust/kernel/list/ |
| H A D | arc.rs | 9 use crate::sync::{Arc, ArcBorrow, UniqueArc}; 293 pub fn try_from_arc_borrow(arc: ArcBorrow<'_, T>) -> Option<Self> in try_from_arc_borrow() 400 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow()
|