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

#include <slab.h>

+ Collaboration diagram for slab_t:

Public Attributes

 as_linked_list
 
spinlock_t lock
 
ptr_t first_free
 
size_t ent_size
 
const char * name
 
size_t nobjs
 

Detailed Description

Definition at line 44 of file slab.h.

Member Data Documentation

◆ as_linked_list

as_linked_list

Definition at line 46 of file slab.h.

◆ lock

spinlock_t lock

Definition at line 47 of file slab.h.

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

◆ first_free

ptr_t first_free

Definition at line 48 of file slab.h.

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

◆ ent_size

size_t ent_size

Definition at line 49 of file slab.h.

Referenced by kmemcache_alloc(), slab_allocate_mem(), slab_for(), slab_init_one(), and slab_realloc().

◆ name

const char* name

Definition at line 50 of file slab.h.

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

◆ nobjs

size_t nobjs

Definition at line 51 of file slab.h.

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


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