Home
last modified time | relevance | path

Searched refs:Option (Results 1 – 22 of 22) sorted by relevance

/rust/kernel/
Drbtree.rs240 pub fn cursor_front(&mut self) -> Option<Cursor<'_, K, V>> { in cursor_front()
255 pub fn cursor_back(&mut self) -> Option<Cursor<'_, K, V>> { in cursor_back()
285 ) -> Result<Option<RBTreeNode<K, V>>> { in try_create_and_insert()
295 pub fn insert(&mut self, node: RBTreeNode<K, V>) -> Option<RBTreeNode<K, V>> { in insert()
367 pub fn find_mut(&mut self, key: &K) -> Option<OccupiedEntry<'_, K, V>> { in find_mut()
375 pub fn get(&self, key: &K) -> Option<&V> { in get()
395 pub fn get_mut(&mut self, key: &K) -> Option<&mut V> { in get_mut()
402 pub fn remove_node(&mut self, key: &K) -> Option<RBTreeNode<K, V>> { in remove_node()
409 pub fn remove(&mut self, key: &K) -> Option<V> { in remove()
418 pub fn cursor_lower_bound(&mut self, key: &K) -> Option<Cursor<'_, K, V>> in cursor_lower_bound()
[all …]
Dinit.rs1405 Option<NonZeroU8>, Option<NonZeroU16>, Option<NonZeroU32>, Option<NonZeroU64>,
1406 Option<NonZeroU128>, Option<NonZeroUsize>,
1407 Option<NonZeroI8>, Option<NonZeroI16>, Option<NonZeroI32>, Option<NonZeroI64>,
1408 Option<NonZeroI128>, Option<NonZeroIsize>,
1409 {<T>} Option<NonNull<T>>,
1410 {<T>} Option<KBox<T>>,
Dmm.rs181 pub fn mmget_not_zero(&self) -> Option<ARef<MmWithUser>> { in mmget_not_zero()
223 pub fn lock_vma_under_rcu(&self, vma_addr: usize) -> Option<VmaReadGuard<'_>> { in lock_vma_under_rcu()
261 pub fn mmap_read_trylock(&self) -> Option<MmapReadGuard<'_>> { in mmap_read_trylock()
291 pub fn vma_lookup(&self, vma_addr: usize) -> Option<&virt::VmaRef> { in vma_lookup()
Dlist.rs324 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
336 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
353 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
550 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next()
750 pub fn peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> { in peek_next()
765 pub fn peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> { in peek_prev()
859 pub fn remove_next(&mut self) -> Option<ListArc<T, ID>> { in remove_next()
864 pub fn remove_prev(&mut self) -> Option<ListArc<T, ID>> { in remove_prev()
957 fn next(&mut self) -> Option<ListArc<T, ID>> { in next()
965 fn next_back(&mut self) -> Option<ListArc<T, ID>> { in next_back()
Dtask.rs243 pub fn get_pid_ns(&self) -> Option<ARef<PidNamespace>> { in get_pid_ns()
258 pub fn tgid_nr_ns(&self, pidns: Option<&PidNamespace>) -> Pid { in tgid_nr_ns()
347 pub fn mm(&self) -> Option<&MmWithUser> { in mm()
380 pub fn active_pid_ns(&self) -> Option<&PidNamespace> { in active_pid_ns()
Derror.rs122 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno()
162 pub fn name(&self) -> Option<&'static CStr> { in name()
179 pub fn name(&self) -> Option<&'static CStr> { in name()
Dtypes.rs61 unsafe fn try_from_foreign(ptr: *const crate::ffi::c_void) -> Option<Self> { in try_from_foreign()
158 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
Dalloc.rs195 ptr: Option<NonNull<u8>>, in realloc()
Dworkqueue.rs231 func: Option<T>,
235 fn project(self: Pin<&mut Self>) -> &mut Option<T> { in project()
/rust/kernel/alloc/
Dallocator.rs74 ptr: Option<NonNull<u8>>, in call()
132 ptr: Option<NonNull<u8>>, in realloc()
151 ptr: Option<NonNull<u8>>, in realloc()
175 ptr: Option<NonNull<u8>>, in realloc()
Dallocator_test.rs50 ptr: Option<NonNull<u8>>, in realloc()
Dkvec.rs428 pub fn pop(&mut self) -> Option<T> { in pop()
1106 fn next(&mut self) -> Option<T> { in next()
1141 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
1225 fn next(&mut self) -> Option<T> { in next()
1231 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
/rust/macros/
Dmodule.rs97 author: Option<String>,
98 description: Option<String>,
99 alias: Option<Vec<String>>,
100 firmware: Option<Vec<String>>,
Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
13 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
21 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
Dquote.rs9 impl<T: ToTokens> ToTokens for Option<T> { implementation
/rust/kernel/sync/lock/
Dmutex.rs119 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
Dspinlock.rs118 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
Dglobal.rs86 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock()
/rust/kernel/sync/
Dlock.rs74 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock()
150 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock()
Darc.rs306 pub fn into_unique_or_drop(self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop()
/rust/kernel/list/
Darc.rs292 pub fn try_from_arc_borrow(arc: ArcBorrow<'_, T>) -> Option<Self> in try_from_arc_borrow()
309 pub fn try_from_arc_or_drop(arc: Arc<T>) -> Option<Self> in try_from_arc_or_drop()
/rust/kernel/mm/
Dvirt.rs138 pub fn as_mixedmap_vma(&self) -> Option<&VmaMixedMap> { in as_mixedmap_vma()