00001
00002
00003 #ifndef kmem_slab_h
00004 #define kmem_slab_h
00005
00006 #include "kmem_slab_simple.h"
00007
00008
00009
00010
00011
00012
00013 class Kmem_slab : public Kmem_slab_simple
00014 {
00015
00016 public:
00017 Kmem_slab(unsigned long slab_size, unsigned elem_size, unsigned alignment);
00018
00019 private:
00020
00021
00022 virtual void * block_alloc(unsigned long size, unsigned long alignment);
00023
00024 virtual void block_free(void *block, unsigned long size);
00025 };
00026
00027 #endif // kmem_slab_h