obkrnl/uma/bucket.rs
1/// Implementation of `uma_bucket` structure.
2#[repr(C)]
3pub struct UmaBucket<I: ?Sized> {
4 len: usize, // ub_cnt
5 items: I, // ub_bucket
6}
7
8impl<I: ?Sized> UmaBucket<I> {
9 pub fn len(&self) -> usize {
10 self.len
11 }
12}
13
14/// Each item in the [`UmaBucket::items`].
15pub struct BucketItem {}