obkrnl/uma/
slab.rs

1/// Implementation of `uma_slab_head`, `uma_slab` and `uma_slab_refcnt`.
2///
3/// We use slightly different mechanism here but has the same memory layout.
4#[repr(C)]
5pub struct Slab<I: ?Sized> {
6    free: I, // us_freelist
7}
8
9/// Item in the slab to represents `uma_slab` structure.
10#[repr(C)]
11pub struct Free {}
12
13/// Item in the slab to represents `uma_slab_refcnt` structure.
14#[repr(C)]
15pub struct RcFree {}