MOS Source Code
Loading...
Searching...
No Matches
slab_t Struct Reference

#include <slab.hpp>

+ Inheritance diagram for slab_t:
+ Collaboration diagram for slab_t:

Public Attributes

 as_linked_list
 
spinlock_t lock = SPINLOCK_INIT
 
ptr_t first_free = 0
 
size_t ent_size = 0
 
size_t nobjs = 0
 
mos::string_view name = "<unnamed>"
 
mos::string_view type_name = "<T>"
 

Detailed Description

Definition at line 51 of file slab.hpp.

Member Data Documentation

◆ as_linked_list

as_linked_list

Definition at line 53 of file slab.hpp.

◆ lock

Definition at line 54 of file slab.hpp.

Referenced by kmemcache_alloc(), kmemcache_free(), and slab_init_one().

◆ first_free

ptr_t first_free = 0

Definition at line 55 of file slab.hpp.

Referenced by kmemcache_alloc(), kmemcache_free(), slab_allocate_mem(), and slab_init_one().

◆ ent_size

◆ nobjs

size_t nobjs = 0

Definition at line 57 of file slab.hpp.

Referenced by kmemcache_alloc(), kmemcache_free(), and slab_init_one().

◆ name

◆ type_name

mos::string_view type_name = "<T>"

Definition at line 59 of file slab.hpp.

Referenced by Slab< T >::Slab(), and slab_init_one().


The documentation for this struct was generated from the following file: