Home
last modified time | relevance | path

Searched refs:ListArc (Results 1 – 7 of 7) sorted by relevance

/linux/rust/kernel/
H A Dlist.rs20 pub use self::arc::{impl_list_arc_safe, AtomicTracker, ListArc, ListArcSafe, TryNewListArc};
265 _ty: PhantomData<ListArc<T, ID>>,
272 ListArc<T, ID>: Send,
280 ListArc<T, ID>: Sync,
491 item: ListArc<T, ID>, in insert_inner()
494 let raw_item = ListArc::into_raw(item); in insert_inner()
534 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back()
542 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front()
553 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
565 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
[all …]
/linux/rust/kernel/list/
H A Darc.rs163 pub struct ListArc<T, const ID: u64 = 0> struct
170 impl<T: ListArcSafe<ID>, const ID: u64> ListArc<T, ID> { implementation
202 impl<T, const ID: u64> From<UniqueArc<T>> for ListArc<T, ID> implementation
213 impl<T, const ID: u64> From<Pin<UniqueArc<T>>> for ListArc<T, ID> implementation
229 impl<T, const ID: u64> ListArc<T, ID> implementation
237 pub fn pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) in pair_from_unique()
250 ) -> (Self, ListArc<T, ID2>) in pair_from_pin_unique()
269 ListArc::transmute_from_arc(arc2), in pair_from_pin_unique()
411 impl<T, const ID: u64> Deref for ListArc<T, ID> implementation
423 impl<T, const ID: u64> Drop for ListArc<T, ID> implementation
[all …]
/linux/drivers/android/binder/
H A Dnode.rs6 list::{AtomicTracker, List, ListArc, ListLinks, TryNewListArc},
285 info: ListArc<NodeRefInfo, { NodeRefInfo::LIST_NODE }>,
301 ) -> Option<ListArc<NodeRefInfo, { NodeRefInfo::LIST_NODE }>> { in remove_node_info()
325 death: ListArc<DTRWrap<NodeDeath>, 1>, in add_death()
359 let list_arc = ListArc::try_from_arc(self.clone()).ok().unwrap(); in inc_ref_done_locked()
402 let list_arc = ListArc::try_from_arc(self.clone()).ok().unwrap(); in update_refcount_locked()
434 let list_arc = ListArc::try_from_arc(self.clone()).ok().unwrap(); in incr_refcount_allow_zero2one()
439 let list_arc = ListArc::try_from_arc(self.clone()).ok().unwrap(); in incr_refcount_allow_zero2one()
1011 if let Some(death) = ListArc::try_from_arc_or_drop(self) { in set_notification_done()
1031 if let Some(death) = ListArc::try_from_arc_or_drop(self) { in set_dead()
H A Drust_binder_main.rs17 list::{ListArc, ListArcSafe, ListLinksSelfPtr, TryNewListArc},
184 type DLArc<T> = kernel::list::ListArc<DTRWrap<T>>;
195 ListArc::pin_init( in arc_try_new()
206 ListArc::pin_init( in arc_pin_init()
H A Dprocess.rs23 list::{List, ListArc, ListArcField, ListLinks},
312 if let Some(death) = ListArc::try_from_arc_or_drop(death) { in death_delivered()
397 by_handle: RBTree<u32, ListArc<NodeRefInfo, { NodeRefInfo::LIST_PROC }>>,
499 let list_process = ListArc::pin_init::<Error>( in new()
868 Ok(info) => ListArc::pair_from_pin_unique(info), in insert_or_update_handle()
1252 let death = ListArc::from(death); in request_death()
1283 if let Some(death) = ListArc::try_from_arc_or_drop(death) { in clear_death()
1706 if let Ok(list_arc) = ListArc::try_from_arc(thread.clone()) { in new()
H A Dfreeze.rs7 list::ListArc,
78 Ok(msg) => ListArc::from(msg), in init()
H A Dthread.rs13 list::{AtomicTracker, List, ListArc, ListLinks, TryNewListArc},
314 if let Ok(work) = ListArc::try_from_arc(self.reply_work.clone()) { in push_reply_work()
323 if let Ok(work) = ListArc::try_from_arc(self.return_work.clone()) { in push_return_work()
1551 .map(ListArc::into_arc) in try_new()