pub type KVec<T> = Vec<T, Kmalloc>;
Type alias for Vec with a Kmalloc allocator.
Vec
Kmalloc
let mut v = KVec::new(); v.push(1, GFP_KERNEL)?; assert_eq!(&v, &[1]);
struct KVec<T> { /* private fields */ }