Home
last modified time | relevance | path

Searched refs:KVVec (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/android/binder/
H A Dcontext.rs6 alloc::kvec::KVVec,
20 contexts: KVVec::new(),
25 contexts: KVVec<Arc<Context>>,
28 pub(crate) fn get_all_contexts() -> Result<KVVec<Arc<Context>>> { in get_all_contexts()
30 let mut ctxs = KVVec::with_capacity(lock.contexts.len(), GFP_KERNEL)?; in get_all_contexts()
42 all_procs: KVVec<Arc<Process>>,
60 all_procs: KVVec::new(), in new()
156 pub(crate) fn get_all_procs(&self) -> Result<KVVec<Arc<Process>>> { in get_all_procs()
158 let mut procs = KVVec::with_capacity(lock.all_procs.len(), GFP_KERNEL)?; in get_all_procs()
165 pub(crate) fn get_procs_with_pid(&self, pid: i32) -> Result<KVVec<Arc<Process>>> { in get_procs_with_pid()
[all …]
H A Dfreeze.rs322 fn find_freeze_recipients(&self) -> Result<KVVec<(DArc<Node>, Arc<Process>)>, AllocError> { in find_freeze_recipients()
331 KVVec::with_capacity(8, GFP_KERNEL).unwrap_or_else(|_err| KVVec::new()); in find_freeze_recipients()
372 let mut batch = KVVec::with_capacity(recipients.len(), GFP_KERNEL)?; in prepare_freeze_messages()
389 batch: KVVec<(Arc<Process>, DLArc<FreezeMessage>)>,
H A Dpage_range.rs311 let mut pages = KVVec::<PageInfo>::with_capacity(num_pages, GFP_KERNEL)?; in register_with_vma()
654 drop(unsafe { KVVec::from_raw_parts(pages, size, size) }); in drop()
/linux/rust/kernel/
H A Dprelude.rs67 KVVec,
H A Dalloc.rs16 pub use self::kvec::KVVec;
/linux/rust/kernel/alloc/
H A Dkvec.rs155 pub type KVVec<T> = Vec<T, KVmalloc>; typedef
1519 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1560 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_empty()
1577 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_no_op()
1595 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_respects_min_capacity()