Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

slab_cache_anon Class Reference

#include <slab_cache_anon.h>

Inheritance diagram for slab_cache_anon:

Kmem_slab_simple Kmem_slab List of all members.

Public Member Functions

 slab_cache_anon (unsigned long slab_size, unsigned elem_size, unsigned alignment)
virtual ~slab_cache_anon ()
virtual void * alloc ()
virtual void free (void *cache_entry)
virtual bool reap ()

Protected Member Functions

virtual void * block_alloc (unsigned long size, unsigned long alignment)=0
virtual void block_free (void *block, unsigned long size)=0
void destroy ()
virtual void elem_ctor (void *)
virtual void elem_dtor (void *)

Private Member Functions

 slab_cache_anon ()
 slab_cache_anon (const slab_cache_anon &)

Private Attributes

slab_first_slab
slab_first_available_slab
slab_last_slab
unsigned long _slab_size
unsigned _elem_size
unsigned _latest_offset
unsigned _alignment

Friends

class slab

Constructor & Destructor Documentation

slab_cache_anon::slab_cache_anon  )  [private]
 

slab_cache_anon::slab_cache_anon const slab_cache_anon  )  [private]
 

slab_cache_anon::slab_cache_anon unsigned long  slab_size,
unsigned  elem_size,
unsigned  alignment
 

slab_cache_anon::~slab_cache_anon  )  [virtual]
 


Member Function Documentation

void * slab_cache_anon::alloc  )  [virtual]
 

Reimplemented in Kmem_slab_simple.

virtual void* slab_cache_anon::block_alloc unsigned long  size,
unsigned long  alignment
[protected, pure virtual]
 

Implemented in Kmem_slab, and Kmem_slab_simple.

virtual void slab_cache_anon::block_free void *  block,
unsigned long  size
[protected, pure virtual]
 

Implemented in Kmem_slab, and Kmem_slab_simple.

void slab_cache_anon::destroy  )  [protected]
 

void slab_cache_anon::elem_ctor void *   )  [protected, virtual]
 

void slab_cache_anon::elem_dtor void *   )  [protected, virtual]
 

void slab_cache_anon::free void *  cache_entry  )  [virtual]
 

Reimplemented in Kmem_slab_simple.

bool slab_cache_anon::reap  )  [virtual]
 

Reimplemented in Kmem_slab_simple.


Friends And Related Function Documentation

friend class slab [friend]
 


Member Data Documentation

unsigned slab_cache_anon::_alignment [private]
 

unsigned slab_cache_anon::_elem_size [private]
 

slab * slab_cache_anon::_first_available_slab [private]
 

slab* slab_cache_anon::_first_slab [private]
 

slab * slab_cache_anon::_last_slab [private]
 

unsigned slab_cache_anon::_latest_offset [private]
 

unsigned long slab_cache_anon::_slab_size [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:17 2005 for Fiasco by  doxygen 1.4.2