Type Alias KVec
Source pub type KVec<T> = Vec<T, Kmalloc>;
Expand description
Type alias for Vec
with a Kmalloc
allocator.
§Examples
let mut v = KVec::new();
v.push(1, GFP_KERNEL)?;
assert_eq!(&v, &[1]);
struct KVec<T> { }
Returns the “default value” for a type.
Read more