| /linux/rust/pin-init/examples/ |
| H A D | linked_list.rs | 34 next: unsafe { Link::new_unchecked(this) }, in new() 35 prev: unsafe { Link::new_unchecked(this) }, in new() 44 prev: list.next.prev().replace(unsafe { Link::new_unchecked(this)}), in insert_next() 45 next: list.next.replace(unsafe { Link::new_unchecked(this)}), in insert_next() 53 next: list.prev.next().replace(unsafe { Link::new_unchecked(this)}), in insert_prev() 54 prev: list.prev.replace(unsafe { Link::new_unchecked(this)}), in insert_prev() 64 Some(unsafe { NonNull::new_unchecked(self.next.as_ptr() as *mut Self) }) in next() 105 unsafe fn new_unchecked(ptr: NonNull<ListHead>) -> Self { 127 unsafe { Link::new_unchecked(self.0.replace(other.0.get())) } 107 unsafe fn new_unchecked(ptr: NonNull<ListHead>) -> Self { new_unchecked() method
|
| H A D | mutex.rs | 108 Pin::new_unchecked(CMutexGuard { in lock()
|
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 180 Self(unsafe { NonNull::new_unchecked(raw) }, PhantomData) in from_raw() 451 unsafe { Pin::new_unchecked(b) } in write_pin_init() 574 unsafe { Pin::new_unchecked(Box::from_raw(ptr.cast())) } in deref() 585 unsafe { Pin::new_unchecked(r) } in deref_mut() 597 unsafe { Pin::new_unchecked(r) }
|
| H A D | kvec.rs | 582 unsafe { ArrayLayout::new_unchecked(capacity) } in into_raw_parts() 590 ptr: unsafe { NonNull::new_unchecked(ptr) }, 848 let new_layout = unsafe { ArrayLayout::<T>::new_unchecked(target_cap) }; 1316 let layout = unsafe { ArrayLayout::<T>::new_unchecked(len) };
|
| H A D | allocator.rs | 188 /// let ptr = unsafe { NonNull::new_unchecked(from_mut(&mut *vbox)) }; 211 let page = unsafe { NonNull::new_unchecked(page) };
|
| /linux/rust/kernel/ |
| H A D | ptr.rs | 56 Self(unsafe { NonZero::new_unchecked(ALIGN) }) in new() 79 Some(Self(unsafe { NonZero::new_unchecked(align) })) in new_checked()
|
| H A D | alloc.rs | 272 unsafe { NonNull::new_unchecked(ptr) }
|
| H A D | mm.rs | 147 Some(unsafe { ARef::from_raw(NonNull::new_unchecked(self.as_raw().cast())) }) in mmget_not_zero()
|
| H A D | firmware.rs | 83 Ok(Firmware(unsafe { NonNull::new_unchecked(fw) })) in request_internal()
|
| H A D | task.rs | 245 Some(unsafe { ARef::from_raw(ptr::NonNull::new_unchecked(ptr.cast::<PidNamespace>())) }) in get_pid_ns()
|
| H A D | error.rs | 156 Error(unsafe { NonZeroI32::new_unchecked(errno) }) in from_errno_unchecked()
|
| H A D | scatterlist.rs | 373 let sgt = unsafe { NonNull::new_unchecked(sgt) }; in new()
|
| H A D | auxiliary.rs | 313 Ok(unsafe { Pin::new_unchecked(F::cast_ref(pinned.get_ref())) }) in as_ref() 502 adev: unsafe { NonNull::new_unchecked(adev) },
|
| H A D | rbtree.rs | 511 best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) }); in find_best_match() 525 best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) }); in find_best_match()
|
| /linux/rust/pin-init/src/ |
| H A D | macros.rs | |
| H A D | alloc.rs | 114 Ok(unsafe { Pin::new_unchecked(this.assume_init()) }) in try_pin_init()
|
| H A D | __internal.rs | 188 Ok(unsafe { Pin::new_unchecked(this.value.assume_init_mut()) }) 350 unsafe { Pin::new_unchecked(&mut *self.ptr) }
|
| H A D | lib.rs | 972 let val = unsafe { Pin::new_unchecked(val) };
|
| /linux/rust/kernel/sync/ |
| H A D | lock.rs | 274 unsafe { Pin::new_unchecked(&mut *self.lock.data.get()) }
|
| /linux/rust/kernel/drm/gem/ |
| H A D | shmem.rs | 144 let obj = unsafe { ARef::from_raw(NonNull::new_unchecked(new)) }; in new()
|
| H A D | mod.rs | 319 let ptr = unsafe { NonNull::new_unchecked(ptr) }; in free_callback()
|
| /linux/rust/proc-macro2/ |
| H A D | parse.rs | 306 crate::Ident::_new_fallback(Ident::new_unchecked(sym, fallback::Span::call_site())); in ident_any() 945 let doc_ident = crate::Ident::_new_fallback(Ident::new_unchecked("doc", fallback_span)); in doc_comment()
|
| H A D | fallback.rs | 786 Ident::new_unchecked(string, span) in new_checked() 789 pub(crate) fn new_unchecked(string: &str, span: Span) -> Self { in new_unchecked() method
|
| /linux/rust/pin-init/internal/src/ |
| H A D | init.rs | 141 let #ident = unsafe { ::core::ptr::NonNull::new_unchecked(slot) };
|