Searched refs:UnsafeCell (Results 1 – 12 of 12) sorted by relevance
| /rust/kernel/ |
| A D | types.rs | 7 cell::UnsafeCell, 325 value: UnsafeCell<MaybeUninit<T>>, 336 value: UnsafeCell::new(MaybeUninit::new(value)), in new() 344 value: UnsafeCell::new(MaybeUninit::uninit()), in uninit() 352 value: UnsafeCell::new(MaybeUninit::zeroed()), in zeroed() 396 UnsafeCell::get(&self.value).cast::<T>() in get() 404 UnsafeCell::raw_get(this.cast::<UnsafeCell<MaybeUninit<T>>>()).cast::<T>() in cast_into()
|
| A D | configfs.rs | 121 use core::cell::UnsafeCell; 684 UnsafeCell<[*mut kernel::ffi::c_void; N]>, 701 Self(UnsafeCell::new([core::ptr::null_mut(); N]), PhantomData) in new()
|
| A D | cpufreq.rs | 28 cell::UnsafeCell, 904 pub struct Registration<T: Driver>(KBox<UnsafeCell<bindings::cpufreq_driver>>, PhantomData<T>); 1039 let mut drv = KBox::new(UnsafeCell::new(Self::VTABLE), GFP_KERNEL)?; in new()
|
| /rust/kernel/sync/ |
| A D | locked_by.rs | 7 use core::{cell::UnsafeCell, mem::size_of, ptr}; 80 data: UnsafeCell<T>, 109 data: UnsafeCell::new(data), in new()
|
| A D | lock.rs | 13 use core::{cell::UnsafeCell, marker::PhantomPinned, pin::Pin}; 118 pub(crate) data: UnsafeCell<T>, 132 data: UnsafeCell::new(t), in new()
|
| /rust/pin-init/examples/ |
| A D | pthread_mutex.rs | 13 cell::UnsafeCell, 25 raw: UnsafeCell<libc::pthread_mutex_t>, 26 data: UnsafeCell<T>, 67 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new() 68 let init = |slot: *mut UnsafeCell<libc::pthread_mutex_t>| { in new() 102 data: UnsafeCell::new(data), in new()
|
| A D | static_init.rs | 9 cell::{Cell, UnsafeCell}, 27 cell: UnsafeCell<MaybeUninit<T>>, 39 cell: UnsafeCell::new(MaybeUninit::uninit()), in new()
|
| A D | mutex.rs | 9 cell::{Cell, UnsafeCell}, 73 data: UnsafeCell<T>, 84 pin_init_from_closure(|slot: *mut UnsafeCell<T>| { in new()
|
| /rust/kernel/list/ |
| A D | arc_field.rs | 12 use core::cell::UnsafeCell; 18 value: UnsafeCell<T>, 30 value: UnsafeCell::new(value), in new()
|
| /rust/kernel/sync/lock/ |
| A D | global.rs | 14 cell::UnsafeCell, 51 data: UnsafeCell::new(data), in new() 120 value: UnsafeCell<T>, 147 value: UnsafeCell::new(val), in new()
|
| /rust/pin-init/src/ |
| A D | lib.rs | 284 cell::UnsafeCell, 1628 {<T: ?Sized + Zeroable>} UnsafeCell<T>, 1711 impl<T> Wrapper<T> for UnsafeCell<T> { implementation
|
| /rust/pin-init/ |
| A D | README.md | 153 cell::UnsafeCell, 178 foo: UnsafeCell<MaybeUninit<bindings::foo>>, 191 let foo = UnsafeCell::raw_get(foo).cast::<bindings::foo>();
|
Completed in 20 milliseconds