| /linux-6.15/rust/kernel/list/ |
| H A D | arc.rs | 9 use crate::sync::{Arc, ArcBorrow, UniqueArc}; 167 arc: Arc<T>, 222 let arc = Arc::from(unique); in from() 261 let arc1 = Arc::from(unique); in pair_from_pin_unique() 262 let arc2 = Arc::clone(&arc1); in pair_from_pin_unique() 277 pub fn try_from_arc(arc: Arc<T>) -> Result<Self, Arc<T>> in try_from_arc() 337 fn transmute_to_arc(self) -> Arc<T> { in transmute_to_arc() 371 pub fn into_arc(self) -> Arc<T> { in into_arc() 380 pub fn clone_arc(&self) -> Arc<T> { in clone_arc() 391 pub fn as_arc(&self) -> &Arc<T> { in as_arc() [all …]
|
| /linux-6.15/rust/kernel/sync/ |
| H A D | arc.rs | 130 pub struct Arc<T: ?Sized> { struct 186 impl<T: ?Sized + core::marker::Unsize<U>, U: ?Sized> core::ops::CoerceUnsized<Arc<U>> for Arc<T> {} implementation 190 impl<T: ?Sized + core::marker::Unsize<U>, U: ?Sized> core::ops::DispatchFromDyn<Arc<U>> for Arc<T> … implementation 205 impl<T> InPlaceInit<T> for Arc<T> { implementation 225 impl<T> Arc<T> { impl 244 impl<T: ?Sized> Arc<T> { implementation 253 Arc { in from_inner() 410 impl<T: ?Sized> Deref for Arc<T> { implementation 426 impl<T: ?Sized> Clone for Arc<T> { implementation 442 impl<T: ?Sized> Drop for Arc<T> { implementation [all …]
|
| /linux-6.15/rust/kernel/ |
| H A D | devres.rs | 16 sync::Arc, 99 pub struct Devres<T>(Arc<DevresInner<T>>); 102 fn new(dev: &Device, data: T, flags: Flags) -> Result<Arc<DevresInner<T>>> { in new() 103 let inner = Arc::pin_init( in new() 125 let _ = unsafe { Arc::from_raw(data) }; in new() 136 fn remove_action(this: &Arc<Self>) { in remove_action() 154 let _ = unsafe { Arc::from_raw(this.as_ptr()) }; in remove_action() 165 let inner = unsafe { Arc::from_raw(ptr) }; in devres_callback()
|
| H A D | workqueue.rs | 137 use crate::{prelude::*, sync::Arc, sync::LockClassKey, types::Opaque}; 534 unsafe impl<T, const ID: u64> WorkItemPointer<ID> for Arc<T> implementation 545 let arc = unsafe { Arc::from_raw(ptr) }; in run() 558 unsafe impl<T, const ID: u64> RawWorkItem<ID> for Arc<T> implementation 570 let ptr = Arc::into_raw(self).cast_mut(); in __enqueue() 581 Err(unsafe { Arc::from_raw(ptr) }) in __enqueue()
|
| H A D | sync.rs | 19 pub use arc::{Arc, ArcBorrow, UniqueArc};
|
| /linux-6.15/rust/kernel/time/hrtimer/ |
| H A D | arc.rs | 9 use crate::sync::Arc; 19 pub(crate) inner: Arc<T>, 29 let self_ptr = Arc::as_ptr(&self.inner); in cancel() 50 impl<T> HrTimerPointer for Arc<T> implementation 64 unsafe { T::start(Arc::as_ptr(&self), expires) }; in start() 69 impl<T> RawHrTimerCallback for Arc<T> implementation
|
| /linux-6.15/samples/rust/ |
| H A D | rust_print_main.rs | 22 let a = Arc::new(1, GFP_KERNEL)?; in arc_print() 31 let a: Arc<&str> = b.into(); in arc_print() 44 fn arc_dyn_print(arc: &Arc<dyn Display>) { in arc_print() 48 let a_i32_display: Arc<dyn Display> = Arc::new(42i32, GFP_KERNEL)?; in arc_print() 49 let a_str_display: Arc<dyn Display> = a.clone(); in arc_print()
|
| /linux-6.15/rust/kernel/sync/arc/ |
| H A D | std_vendor.rs | 10 use crate::sync::{arc::ArcInner, Arc}; 13 impl Arc<dyn Any + Send + Sync> { impl 15 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast() 24 Ok(Arc::from_inner(ptr)) in downcast()
|
| /linux-6.15/rust/pin-init/src/ |
| H A D | alloc.rs | 4 use alloc::{boxed::Box, sync::Arc}; 9 use std::sync::Arc; 98 impl<T> InPlaceInit<T> for Arc<T> { implementation 104 let mut this = try_new_uninit!(Arc); in try_pin_init() 105 let Some(slot) = Arc::get_mut(&mut this) else { in try_pin_init() 122 let mut this = try_new_uninit!(Arc); in try_init() 123 let Some(slot) = Arc::get_mut(&mut this) else { in try_init()
|
| /linux-6.15/rust/kernel/block/mq/ |
| H A D | gen_disk.rs | 9 use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc}; 94 tagset: Arc<TagSet<T>>, in build() 181 _tagset: Arc<TagSet<T>>,
|
| /linux-6.15/drivers/block/ |
| H A D | rnull.rs | 23 sync::{Arc, Mutex}, 47 let tagset = Arc::pin_init(TagSet::new(1, 256, 1), flags::GFP_KERNEL)?; in init()
|
| /linux-6.15/rust/pin-init/examples/ |
| H A D | static_init.rs | 15 sync::Arc, 89 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| H A D | pthread_mutex.rs | 145 sync::Arc, in main() 149 let mtx: Pin<Arc<PThreadMutex<usize>>> = Arc::try_pin_init(PThreadMutex::new(0)).unwrap(); in main()
|
| H A D | mutex.rs | 15 sync::Arc, 181 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| /linux-6.15/rust/pin-init/ |
| H A D | README.md | 40 will require the `std` feature, because stable compilers have neither `Box` nor `Arc` in no-std 47 - a memory location that can hold your `struct` (this can be the [stack], an [`Arc<T>`], 105 let mtx: Result<Pin<Arc<CMutex<usize>>>, _> = Arc::pin_init(CMutex::new(42)); 221 [`Arc<T>`]: https://doc.rust-lang.org/stable/alloc/sync/struct.Arc.html
|
| /linux-6.15/arch/mips/include/asm/ |
| H A D | sgiarcs.h | 58 Arc, Cpu, Fpu, enumerator
|
| /linux-6.15/drivers/video/fbdev/ |
| H A D | Kconfig | 247 tristate "Arc Monochrome LCD board support" 251 This enables support for the Arc Monochrome LCD board. The board
|
| /linux-6.15/ |
| H A D | CREDITS | 2295 D: Arc monochrome LCD framebuffer driver, x86 reboot fixups
|