L4Re - L4 Runtime Environment
|
Slab allocator for object of type Type. More...
Public Member Functions | |
Type * | alloc () throw () |
Allocate an object of type Type. More... | |
void | free (Type *o) throw () |
Free the object addressed by o. More... | |
![]() | |
unsigned | total_objects () const throw () |
Get the total number of objects managed by the slab allocator. More... | |
unsigned | free_objects () const throw () |
Get the total number of objects managed by the slab allocator. More... | |
Additional Inherited Members | |
![]() | |
typedef Alloc< Slab_i > | Slab_alloc |
Type of the allocator for the slab caches. | |
Slab allocator for object of type Type.
Type | the type of the objects to manage. |
Slab_size | size of a slab cache. |
Max_free | the maximum number of free slab caches. |
Alloc | the allocator for the slab caches. |
Definition at line 297 of file slab_alloc.
|
inline |
Allocate an object of type Type.
Definition at line 314 of file slab_alloc.
|
inline |
Free the object addressed by o.
o | The pointer to the object to free. |
Definition at line 325 of file slab_alloc.
References L4_PAGESIZE.