Searched refs:FamStructWrapper (Results 1 – 5 of 5) sorted by relevance
164 pub struct FamStructWrapper<T: Default + FamStruct> { struct174 impl<T: Default + FamStruct> FamStructWrapper<T> { implementation216 pub fn new(num_elements: usize) -> Result<FamStructWrapper<T>, Error> { in new()221 FamStructWrapper::<T>::mem_allocator_len(num_elements) in new()236 Ok(FamStructWrapper { mem_allocator }) in new()250 pub fn from_entries(entries: &[T::Entry]) -> Result<FamStructWrapper<T>, Error> { in from_entries()251 let mut adapter = FamStructWrapper::<T>::new(entries.len())?; in from_entries()276 FamStructWrapper { in from_raw()344 FamStructWrapper::<T>::fam_len(self.mem_allocator.capacity()) in capacity()361 let required_mem_allocator_len = FamStructWrapper::<T>::mem_allocator_len(desired_capacity) in reserve()[all …]
14 - Fixed a bug in `serde` implementation of `FamStructWrapper` which allowed out of60 - Derive `Debug` for `FamStructWrapper` & `EventFd`.115 * Added conditionally compiled `serde` compatibility to `FamStructWrapper`,147 * Fixed the FamStructWrapper Clone implementation to avoid UB.
15 fam::{Error as FamError, FamStruct, FamStructWrapper},727 type GntDevMapGrantRefWrapper = FamStructWrapper<GntDevMapGrantRef>;
15 fam::{Error as FamError, FamStruct, FamStructWrapper},726 type GntDevMapGrantRefWrapper = FamStructWrapper<GntDevMapGrantRef>;
32 type VhostVdpaConfig = FamStructWrapper<vhost_vdpa_config>;