Searched defs:ptr (Results 1 – 15 of 15) sorted by relevance
/rust/alloc/ |
D | raw_vec.rs | 54 ptr: Unique<T>, field 196 let ptr = match result { in allocate_in() localVariable 224 let ptr = result.map_err(|_| AllocError { layout, non_exhaustive: () })?; in try_allocate_in() localVariable 255 pub fn ptr(&self) -> *mut T { in ptr() method 443 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized() localVariable 462 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact() localVariable 474 let ptr = unsafe { in shrink() localVariable
|
D | alloc.rs | 188 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in alloc_impl() localVariable 220 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in grow_impl() localVariable 311 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in shrink() localVariable
|
D | boxed.rs | 487 let ptr = alloc.allocate(layout)?.cast(); in try_new_uninit_in() localVariable 557 let ptr = alloc.allocate_zeroed(layout)?.cast(); in try_new_zeroed_in() localVariable 687 let ptr = Global.allocate(layout)?; in try_new_uninit_slice() localVariable 719 let ptr = Global.allocate_zeroed(layout)?; in try_new_zeroed_slice() localVariable 1238 let ptr: Unique<[T]> = Unique::<[T; 0]>::dangling(); in default() localVariable 1249 let ptr: Unique<str> = unsafe { in default() localVariable 1895 let ptr: *const T = &**self; in fmt() localVariable
|
/rust/kernel/sync/arc/ |
D | std_vendor.rs | 20 let ptr = self.ptr.cast::<ArcInner<T>>(); in downcast() localVariable
|
/rust/kernel/ |
D | task.rs | 105 let ptr = unsafe { bindings::get_current() }; in current() localVariable 120 let ptr = unsafe { *ptr::addr_of!((*self.0.get()).group_leader) }; in group_leader() localVariable
|
D | error.rs | 144 let ptr = unsafe { bindings::errname(-self.0) }; in name() localVariable
|
D | init.rs | 1039 let ptr = unsafe { slot.add(i) }; localVariable 1083 let ptr = unsafe { slot.add(i) }; localVariable
|
D | types.rs | 311 ptr: NonNull<T>, field
|
D | str.rs | 575 let ptr = unsafe { bindings::memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) }; in try_from_fmt() localVariable
|
/rust/ |
D | helpers.c | 105 bool rust_helper_IS_ERR(__force const void *ptr) in rust_helper_IS_ERR() 111 long rust_helper_PTR_ERR(__force const void *ptr) in rust_helper_PTR_ERR()
|
/rust/alloc/vec/ |
D | drain_filter.rs | 102 let ptr = this.vec.as_mut_ptr(); in keep_rest() localVariable 179 let ptr = self.drain.vec.as_mut_ptr(); in drop() localVariable
|
D | mod.rs | 985 let ptr = me.as_mut_ptr(); in into_raw_parts_with_alloc() localVariable 1631 let ptr = self.as_mut_ptr().add(index); in remove() localVariable 1861 let ptr = self.vec.as_mut_ptr(); in dedup_by() localVariable 1887 let ptr = gap.vec.as_mut_ptr(); in dedup_by() localVariable 2459 let ptr = self.as_mut_ptr(); in split_at_spare_mut_with_len() localVariable 2710 let mut ptr = self.as_mut_ptr().add(self.len()); in extend_with() localVariable 2739 let mut ptr = self.as_mut_ptr().add(self.len()); in try_extend_with() localVariable 3114 let ptr = self.as_mut_ptr(); in extend_trusted() localVariable 3147 let ptr = self.as_mut_ptr(); in try_extend_trusted() localVariable
|
D | into_iter.rs | 45 pub(super) ptr: *const T, field
|
/rust/kernel/init/ |
D | __internal.rs | 188 ptr: *mut T, field
|
/rust/kernel/sync/ |
D | arc.rs | 129 ptr: NonNull<ArcInner<T>>, field
|